mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(MK2): recognize 'BL2.0' archives.
This commit is contained in:
parent
752e022a6f
commit
fc00b7eaab
@ -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);
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user