From 19f40169e25bb0379e0501b5e05b51b4d4a56b6e Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 22 Mar 2017 03:02:21 +0400 Subject: [PATCH] (Csystem): archive name parser for 'inyoukyou_kuon'. --- ArcFormats/Cyberworks/ArcDAT.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ArcFormats/Cyberworks/ArcDAT.cs b/ArcFormats/Cyberworks/ArcDAT.cs index 94deff74..d8f5a1ec 100644 --- a/ArcFormats/Cyberworks/ArcDAT.cs +++ b/ArcFormats/Cyberworks/ArcDAT.cs @@ -144,6 +144,17 @@ namespace GameRes.Formats.Cyberworks } } + internal class InKyouParser : ArchiveNameParser + { + public InKyouParser () : base (@"^inyoukyou_kuon\.app$") { } + + protected override string ParseMatch (Match match, out int arc_idx) + { + arc_idx = 0; + return "inyoukyou_kuon.dat"; + } + } + [Export(typeof(ArchiveFormat))] public class DatOpener : ArchiveFormat { @@ -155,10 +166,10 @@ namespace GameRes.Formats.Cyberworks public DatOpener () { - Extensions = new string[] { "dat", "04", "05", "06" }; + Extensions = new string[] { "dat", "04", "05", "06", "app" }; } - static readonly ArchiveNameParser[] s_name_parsers = { new ArcNameParser(), new DatNameParser() }; + static readonly ArchiveNameParser[] s_name_parsers = { new ArcNameParser(), new DatNameParser(), new InKyouParser() }; public override ArcFile TryOpen (ArcView file) {