From f9def9732134d1914d6a4223221c5a0a7b1354ab Mon Sep 17 00:00:00 2001 From: ManicSteiner Date: Sat, 21 Dec 2024 22:49:01 +0800 Subject: [PATCH] add support of F Fanatic PC version archive --- ArcFormats/DigitalWorks/ArcPAC.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArcFormats/DigitalWorks/ArcPAC.cs b/ArcFormats/DigitalWorks/ArcPAC.cs index 1924cce4..6ab833df 100644 --- a/ArcFormats/DigitalWorks/ArcPAC.cs +++ b/ArcFormats/DigitalWorks/ArcPAC.cs @@ -35,20 +35,20 @@ namespace GameRes.Formats.DigitalWorks { public override string Tag { get { return "PAC/HED"; } } public override string Description { get { return "Digital Works resource archive"; } } - public override uint Signature { get { return 0x43415050; } } // 'PPAC-PAC' + public override uint Signature { get { return 0; } } // 'PPAC-PAC' public override bool IsHierarchic { get { return false; } } public override bool CanWrite { get { return false; } } public override ArcFile TryOpen (ArcView file) { - if (!file.View.AsciiEqual (4, "-PAC")) + if (!file.View.AsciiEqual (0, "PPAC-PAC") && !file.View.AsciiEqual(0, "FANA_V1.0.0.0")) return null; var hed_name = Path.ChangeExtension (file.Name, "hed"); if (!VFS.FileExists (hed_name)) return null; using (var hed = VFS.OpenView (hed_name)) { - if (!hed.View.AsciiEqual (0, "PPAC-HED")) + if (!hed.View.AsciiEqual (0, "PPAC-HED") && !hed.View.AsciiEqual(0, "FANA_V1.0.0.0")) return null; uint index_offset = 0x10; const uint data_offset = 0x10;