Merge pull request #45 from MkfsSion/yanefix

ArcFormats: Fix TryOpen() for YaneSDK .dat archive
This commit is contained in:
Crsky 2024-09-07 09:57:32 +08:00 committed by GitHub
commit 3120d9477b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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