(WRC, ARC0): added extensions and signatures.

This commit is contained in:
morkt 2017-12-19 20:51:08 +04:00
parent 27262433fa
commit baf8decf14
2 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,7 @@ namespace GameRes.Formats.Will
public Arc0Opener ()
{
Extensions = new string[] { "arc" };
Signatures = new uint[] { 0x30435241, 0x30414654 };
}
public override ArcFile TryOpen (ArcView file)

View File

@ -31,12 +31,17 @@ namespace GameRes.Formats.Will
[Export(typeof(ArchiveFormat))]
public class WrcOpener : ArchiveFormat
{
public override string Tag { get { return "WRC"; } }
public override string Tag { get { return "WVX"; } }
public override string Description { get { return "Tanaka Tatsuhiro's engine audio archive"; } }
public override uint Signature { get { return 0x30585657; } } // 'WVX0'
public override bool IsHierarchic { get { return false; } }
public override bool CanWrite { get { return false; } }
public WrcOpener ()
{
Extensions = new string[] { "wvx", "wrc" };
}
public override ArcFile TryOpen (ArcView file)
{
uint total_size = file.View.ReadUInt32 (4);