From 628d62ac0d735b9c428921aeb494c62d12067f3b Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 27 Sep 2018 18:22:58 +0400 Subject: [PATCH] (NOA): added ContainedFormats + recognize 'VIST' archives. --- ArcFormats/Entis/ArcNOA.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Entis/ArcNOA.cs b/ArcFormats/Entis/ArcNOA.cs index 4ee84292..6ebe25a5 100644 --- a/ArcFormats/Entis/ArcNOA.cs +++ b/ArcFormats/Entis/ArcNOA.cs @@ -77,8 +77,10 @@ namespace GameRes.Formats.Entis public NoaOpener () { - Extensions = new string[] { "noa", "dat", "rsa", "arc" }; + Extensions = new string[] { "noa", "dat", "rsa", "arc", "emc" }; + Signatures = new uint[] { 0x69746E45, 0x54534956 }; Settings = new[] { NoaEncoding }; + ContainedFormats = new[] { "ERI", "EMI", "MIO", "EMS", "TXT" }; } EncodingSetting NoaEncoding = new EncodingSetting ("NOAEncodingCP", "DefaultEncoding"); @@ -88,7 +90,7 @@ namespace GameRes.Formats.Entis public override ArcFile TryOpen (ArcView file) { - if (!file.View.AsciiEqual (0, "Entis\x1a")) + if (!file.View.AsciiEqual (0, "Entis\x1a") && !file.View.AsciiEqual (0, "VIST\x1a")) return null; uint id = file.View.ReadUInt32 (8); if (0x02000400 != id) @@ -603,4 +605,9 @@ namespace GameRes.Formats.Entis } } } + + [Export(typeof(ResourceAlias))] + [ExportMetadata("Extension", "GDS")] + [ExportMetadata("Target", "TXT")] + public class GdsFormat : ResourceAlias { } }