mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-28 05:44:12 +08:00
(SEEN): ignore zero-sized entries.
This commit is contained in:
parent
e9102844bc
commit
d8d2c57248
@ -61,9 +61,12 @@ namespace GameRes.Formats.RealLive
|
||||
entry.Size = file.View.ReadUInt32 (index_offset+0x14);
|
||||
entry.UnpackedSize = file.View.ReadUInt32 (index_offset+0x18);
|
||||
entry.IsPacked = file.View.ReadUInt32 (index_offset+0x1C) != 0;
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
dir.Add (entry);
|
||||
if (entry.Size > 0)
|
||||
{
|
||||
if (!entry.CheckPlacement (file.MaxOffset))
|
||||
return null;
|
||||
dir.Add (entry);
|
||||
}
|
||||
index_offset += 0x20;
|
||||
}
|
||||
return new ArcFile (file, this, dir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user