No sprite submission today, but the revelation of another tool I made;
DSDecmp.
This command-line program can decompress the common compression formats used in the DS & GBA:
- Huffman compression
- Run-Length Encoding
- LZ77/LZSS compression (both flag 0x10 and 0x11)
- 'None' (does not compress or alter data, but is sometimes used. the format only prepends 4 bytes (1 byte 0x00, the other the original file size))
Part of this tool has been done for a while, but the 0x11 flag LZ77/LZSS compression wasn't documented anywhere and thus took 'somewhat' longer.
Usage:
Code:
DSDecmp infile outfolder [maxlen]
or:
Code:
DSDecmp infolder outfolder [maxlen]
maxlen is a hexadecimal number. All files that would be larger than that value when decompressed will not be decompressed.
If an error/exception occurs, the message is shown in the console, and you'll have to press enter to continue.
Also note that subfolders will be ignored if a folder is given as input, and files in the
outfolder will only be overwritten if the input file is being copied (which happens when the file format is not recognized).