10-24-2014, 02:46 PM
(10-23-2014, 11:10 PM)Ploaj Wrote: It only works on some of the files. It's basically just RLE.This may sound stupid, but what language was this code written in. I can't seem to run it.
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);
}