Skip to content

Commit

Permalink
Merge pull request #67 from Manicsteiner/feat_pacf
Browse files Browse the repository at this point in the history
add support of F Fanatic PC version archive
  • Loading branch information
crskycode authored Dec 22, 2024
2 parents cd8fcea + f9def97 commit 8f96a1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArcFormats/DigitalWorks/ArcPAC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ public class PacOpener : ArchiveFormat
{
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;
Expand Down

0 comments on commit 8f96a1b

Please sign in to comment.