It only works on some of the files. It's basically just RLE.
You actually already figured it out :p
I wrote this the first time I looked at the files, but it worked this time for some reason.
(file and newfile are RandomAccessFiles.)
You actually already figured it out :p
I wrote this the first time I looked at the files, but it worked this time for some reason.
(file and newfile are RandomAccessFiles.)
Code:
file.seek(0x08);
while (file.getFilePointer()<file.length()){
int loop = file.read();
if (loop == 0xFF) loop = 1; else loop += 1;
int let = file.read();
for(int i = 0;i<loop;i++) newfile.write(let);
}