From fc00b7eaab7aa55e165b6778dc24f445fb68bd18 Mon Sep 17 00:00:00 2001 From: morkt Date: Wed, 6 Jun 2018 00:49:22 +0400 Subject: [PATCH] (MK2): recognize 'BL2.0' archives. --- ArcFormats/BellDa/ArcDAT.cs | 1 + ArcFormats/Maika/ArcMK2.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/ArcFormats/BellDa/ArcDAT.cs b/ArcFormats/BellDa/ArcDAT.cs index 70bc0b5f..4034bb9d 100644 --- a/ArcFormats/BellDa/ArcDAT.cs +++ b/ArcFormats/BellDa/ArcDAT.cs @@ -68,6 +68,7 @@ namespace GameRes.Formats.BellDa public override IImageDecoder OpenImage (ArcFile arc, Entry entry) { + // XXX compression method identical to Maika.Mk2Opener var id_str = arc.File.View.ReadString (entry.Offset, 2); if (id_str != "B1" && id_str != "D1" && id_str != "E1") return base.OpenImage (arc, entry); diff --git a/ArcFormats/Maika/ArcMK2.cs b/ArcFormats/Maika/ArcMK2.cs index ce19b44f..e18e3ce2 100644 --- a/ArcFormats/Maika/ArcMK2.cs +++ b/ArcFormats/Maika/ArcMK2.cs @@ -41,6 +41,11 @@ namespace GameRes.Formats.Maika public override bool IsHierarchic { get { return false; } } public override bool CanWrite { get { return false; } } + public Mk2Opener () + { + Signatures = new uint[] { 0x2E324B4D, 0x2E324C42 }; // 'BL2.0' + } + public override ArcFile TryOpen (ArcView file) { if (!file.View.AsciiEqual (4, "0\0"))