(BinOpener): recognize 'ACP_PK.1' archives.

This commit is contained in:
morkt 2018-01-04 18:15:20 +04:00
parent 7f823d20af
commit eae1509a12

View File

@ -43,11 +43,12 @@ namespace GameRes.Formats.FVP
public BinOpener () public BinOpener ()
{ {
Extensions = new string[] { "bin" }; Extensions = new string[] { "bin" };
Signatures = new uint[] { 0x58504341, 0x5F504341 };
} }
public override ArcFile TryOpen (ArcView file) public override ArcFile TryOpen (ArcView file)
{ {
if (!file.View.AsciiEqual (4, "PK01")) if (!file.View.AsciiEqual (3, "XPK01") && !file.View.AsciiEqual (3, "_PK.1"))
return null; return null;
int count = file.View.ReadInt32 (8); int count = file.View.ReadInt32 (8);
if (!IsSaneCount (count)) if (!IsSaneCount (count))