mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-30 17:05:37 +08:00
ArcFormats: Fix TryOpen() for YaneSDK .dat archive
* Tested game: https://vndb.org/r11278 Signed-off-by: MkfsSion <mkfssion@mkfssion.com>
This commit is contained in:
parent
e2d4ddb59a
commit
092b544c87
@ -70,7 +70,7 @@ namespace GameRes.Formats.YaneSDK
|
|||||||
entry.EncryptedSize = index.ReadUInt16();
|
entry.EncryptedSize = index.ReadUInt16();
|
||||||
entry.Size = index.ReadUInt32();
|
entry.Size = index.ReadUInt32();
|
||||||
entry.Offset = index.ReadUInt32();
|
entry.Offset = index.ReadUInt32();
|
||||||
if (!entry.CheckPlacement (file.MaxOffset) || entry.Offset <= data_offset)
|
if (!entry.CheckPlacement (file.MaxOffset) || entry.Offset < data_offset)
|
||||||
return null;
|
return null;
|
||||||
dir.Add (entry);
|
dir.Add (entry);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user