(SEEN): ignore zero-sized entries.

This commit is contained in:
morkt 2018-01-07 12:05:04 +04:00
parent e9102844bc
commit d8d2c57248

View File

@ -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);