set Extensions property.

This commit is contained in:
morkt 2016-03-21 01:31:31 +04:00
parent fe125a8006
commit d71dc26329
2 changed files with 11 additions and 1 deletions

View File

@ -52,6 +52,11 @@ namespace GameRes.Formats.FVP
public override bool IsHierarchic { get { return false; } }
public override bool CanCreate { get { return false; } }
public HzcOpener ()
{
Extensions = new string[] { "hzc" };
}
static readonly Lazy<ImageFormat> Hzc = new Lazy<ImageFormat> (() => ImageFormat.FindByTag ("HZC"));
public override ArcFile TryOpen (ArcView file)

View File

@ -31,7 +31,7 @@ using System.IO;
namespace GameRes.Formats.Kaguya
{
[Export(typeof(ArchiveFormat))]
public class PakOpener : ArchiveFormat
public class LinkOpener : ArchiveFormat
{
public override string Tag { get { return "LINK/KAGUYA"; } }
public override string Description { get { return "KaGuYa script engine resource archive"; } }
@ -39,6 +39,11 @@ namespace GameRes.Formats.Kaguya
public override bool IsHierarchic { get { return false; } }
public override bool CanCreate { get { return false; } }
public LinkOpener ()
{
Extensions = new string[] { "arc" };
}
public override ArcFile TryOpen (ArcView file)
{
int version = file.View.ReadByte (4) - '0';