mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-28 13:54:15 +08:00
(TLG): recognize obfuscated TLG5 images.
This commit is contained in:
parent
165fbe0bf0
commit
d7523ed83c
@ -35,7 +35,7 @@ namespace GameRes.Formats.KiriKiri
|
||||
public TlgFormat ()
|
||||
{
|
||||
Extensions = new string[] { "tlg", "tlg5", "tlg6" };
|
||||
Signatures = new uint[] { 0x30474c54, 0x35474c54, 0x36474c54, 0x35474cAB };
|
||||
Signatures = new uint[] { 0x30474C54, 0x35474C54, 0x36474C54, 0x35474CAB, 0x584D4B4A };
|
||||
}
|
||||
|
||||
public override ImageMetaData ReadMetaData (IBinaryStream stream)
|
||||
@ -65,6 +65,12 @@ namespace GameRes.Formats.KiriKiri
|
||||
header[offset+0x0F] ^= 0xAB;
|
||||
header[offset+0x13] ^= 0xAC;
|
||||
}
|
||||
else if (header.AsciiEqual (offset, "JKMXE8"))
|
||||
{
|
||||
version = 5;
|
||||
header[offset+0x0C] ^= 0x1A;
|
||||
header[offset+0x10] ^= 0x1C;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
int colors = header[offset+11];
|
||||
|
Loading…
x
Reference in New Issue
Block a user