(MK2): recognize 'BL2.0' archives.

This commit is contained in:
morkt 2018-06-06 00:49:22 +04:00
parent 752e022a6f
commit fc00b7eaab
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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"))