Commit Graph

10 Commits

Author SHA1 Message Date
barubary
d64137221a C#: A step into a new system, where game-specific formats can be defined as plugins, preventing users from having to download DSDecmp itself again and again. Such plugins must be stores in a 'Plugins' folder in the same location as the DSDecmp.exe.
To keep the base program mobile, all native NDS formats do not require plugins.

The 8-bit Huffman format cannot be used to compress at the moment; thanks to CUE a bug has been found where the offset-field of a node overflows, corrupting the compressed file.
2011-11-13 16:14:45 +00:00
barubary
1bd750c76d C# (previous one as well): re-implemented the LZ-0x11 algorithm in the new structure. Also updated the GBATEK-like format description of the format, hopefully correct this time. 2011-03-22 11:31:48 +00:00
barubary
052b9c0677 Augh. idiot-bug fixed. (the last 0xC bytes of arm9.bin should be ignored, no the first ones) 2011-01-16 00:38:02 +00:00
barubary
a19592264e Last adjustment to the LZ-Overlay decompression for now, until I can compare a properly decompressed file with one that doesn't come out right with this program. 2011-01-16 00:25:46 +00:00
barubary
e8b3913596 Minor adjustment in LZ-Overlay decompressing, catching more Disp-values that are too large. 2011-01-16 00:11:04 +00:00
barubary
11564be73d Fixed some bugs in the LZ-Overlay code. 2011-01-15 23:51:06 +00:00
barubary
2334261982 Added support for compression used in overlay files of the DS, as well as the arm9.bin file. The format is mostly LZ-0x10 in reverse, but has a small difference in the calculation of the Disp value for compressed blocks. The complete file also need not be compressed. 2011-01-15 21:38:13 +00:00
barubary
0e13ad064e Added a new compression format in the C# source: type 0x40 LZ77/LZSS. It differs not very much from type 0x11 in compression size, but has an odd way of storing which blocks are compressed.
A Java-version of the scheme may come at a later time.

I _think_ this is a built-in compression, but it could also be a format Camelot made and used only for the latest Golden Sun installment.

Oh, I've also added the MIT licence to the C# source code file.
2010-10-28 23:24:56 +00:00
barubary
4500dfc1e1 Upgraded sln to VS2008.
Also updated the source to match my local copy. No changes in decompression, only usability,
2010-09-21 10:05:10 +00:00
barubary
a597cd23a9 added source code for both C# and Java.
Note that the Java algorithms are a port of the C# ones, and only the LZ10 and LZ11 have been tested of the Java implementation.
2009-06-07 13:40:49 +00:00