(TryOpen): set IsPacked property.

This commit is contained in:
morkt 2015-11-26 02:25:00 +04:00
parent b38e3a0601
commit c1bfb00249

View File

@ -83,6 +83,7 @@ namespace GameRes.Formats.Propeller
{ {
entry.UnpackedSize = file.View.ReadUInt32 (entry.Offset); entry.UnpackedSize = file.View.ReadUInt32 (entry.Offset);
entry.Size = file.View.ReadUInt32 (entry.Offset+4); entry.Size = file.View.ReadUInt32 (entry.Offset+4);
entry.IsPacked = true;
if (entry.UnpackedSize < 0x36 || entry.Size > file.MaxOffset-entry.Offset) if (entry.UnpackedSize < 0x36 || entry.Size > file.MaxOffset-entry.Offset)
return null; return null;
entry.Offset += 8; entry.Offset += 8;