mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-27 01:12:54 +08:00
ResourceAnalyzer improvement for ResourcePagesInfo length
This commit is contained in:
parent
413877909e
commit
463058e166
@ -60,7 +60,7 @@ namespace CodeWalker.GameFiles
|
|||||||
item.GraphicsBlock = kvp.Value as ResourceGraphicsBlock;
|
item.GraphicsBlock = kvp.Value as ResourceGraphicsBlock;
|
||||||
if (kvp.Value is ResourcePagesInfo rpi)
|
if (kvp.Value is ResourcePagesInfo rpi)
|
||||||
{
|
{
|
||||||
item.Length = 20 + (rpi.SystemPagesCount + rpi.GraphicsPagesCount) * 8;
|
item.Length = 16 + (rpi.SystemPagesCount + rpi.GraphicsPagesCount) * 8;
|
||||||
}
|
}
|
||||||
dlist.Add(item);
|
dlist.Add(item);
|
||||||
}
|
}
|
||||||
@ -93,8 +93,14 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
var dlist2 = new List<ResourceAnalyzerItem>();
|
var dlist2 = new List<ResourceAnalyzerItem>();
|
||||||
long pos = 0;
|
long pos = 0;
|
||||||
|
bool gfx = false;
|
||||||
foreach (var item in dlist)
|
foreach (var item in dlist)
|
||||||
{
|
{
|
||||||
|
if ((item.GraphicsBlock != null) && (!gfx))
|
||||||
|
{
|
||||||
|
pos = 0;
|
||||||
|
gfx = true;
|
||||||
|
}
|
||||||
if (item.Offset > pos)
|
if (item.Offset > pos)
|
||||||
{
|
{
|
||||||
var gap = new ResourceAnalyzerItem();
|
var gap = new ResourceAnalyzerItem();
|
||||||
|
Loading…
Reference in New Issue
Block a user