[Switch] Touch Detective unknown compression method

Textures, recreate headers, conversions, algorithms and parsing of image files
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

[Switch] Touch Detective unknown compression method

Post by masagrator »

Hello.

I was trying to figure out what compression this is using, but no clue.

What I think have figured out:

Code: Select all

get MAGIC Long
Get SIZE Long
Get ZSIZE Long
get UNK Long
Math ZSIZE - 16
Get FILENAME basename
String FILENAME + "_dec.bin"
CLog FILENAME 16 ZSIZE SIZE
Magic is "SLID".
ZSIZE matches asize.
Was trying Puyo_LZ01. QuickBMS doesn't throw error, but it produces wrong file.
Attached compressed BNTX file called "splash.png" (which is not PNG). Uncompressed file should start with MAGIC "BNTX", in compressed file it seems to start with flag 0xEF before BNTX magic.
My guess is that 0xEF means next 4 bytes are uncompressed.

Image