mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(BinOpener): recognize 'ACP_PK.1' archives.
This commit is contained in:
parent
7f823d20af
commit
eae1509a12
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user