mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(TryOpen): set IsPacked property.
This commit is contained in:
parent
b38e3a0601
commit
c1bfb00249
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user