DSDecmp - Decompressor for compression formats used on the NDS - by Barubary
Usage: DSDecmp FMTARGS IOARGS
IOARGS can be:
-------------------------------------------------------------------------------
file -> read the file, overwrite it.
folder [-co] -> read all files from folder, save to folder_dec
or folder_cmp.
file newfile -> read the file, save it to newfile.
(newfile cannot exist yet)
folderin folderout [-co] -> read all files from folderin, save to folderout.
file1 file2 ... -> read file1, file2, etc; overwrite them.
file1 file2 ... folderout [-co] -> read file1, file2, etc; save to folderout.
When -co is present, all files that could not be handled will be copied to the
indicated output folder.
-------------------------------------------------------------------------------
FMTARGS can be:
-------------------------------------------------------------------------------
-> try to decompress input to output.
-d [-ge] -> try to decompress input to output.
-d [-ge] -f -> try to decompress input to output, using fiven format
-c [opt1 ...] -> compress intput to output using given format
and options.
When -ge is present, the extension of the output file will be determined by
the first 4 bytes of the decompressed data. (if those are alphanuemric ASCII
characters).
-------------------------------------------------------------------------------
Supported formats:
-> description
lzovl -> Reverse LZ format, mainly used in 'overlay' files of NDS games.
lz10 -> Common LZ-type compression used in many post-GBC Nintendo games.
lz11 -> Variant of the LZ-0x10 format to support longer repetitions.
huff4 -> Huffman compression scheme using 4-bit datablocks.
huff8 -> Huffman compression scheme using 8-bit datablocks.
rle -> Run-Length Encoding used in some modern Nintendo games.
null -> NULL-'compression' format. Prefixes file with 0x00 and filesize.
huff -> Either the Huffman-4 or Huffman-8 format.
gba* -> All formats natively supported by the GBA.
nds* -> All formats natively supported by the NDS.
gsdd -> A variant of the LZ-0x11 scheme found in Golden Sun: Dark Dawn.
Le -> A variant of an LZ/RLE scheme found in Luminous Arc games.
-------------------------------------------------------------------------------