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:
MkfsSion 2024-09-04 18:20:01 +08:00
parent e2d4ddb59a
commit 092b544c87

View File

@ -70,7 +70,7 @@ namespace GameRes.Formats.YaneSDK
entry.EncryptedSize = index.ReadUInt16();
entry.Size = 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;
dir.Add (entry);
}