@foone@digipres.club
on 16-bit system, 2 is a very suspicious number
@foone@digipres.club
yep there's an array of pointers!
on 16-bit system, 2 is a very suspicious number
yep there's an array of pointers!
this file loading code is broken. it tries to load the file in 64kb chunks but it only saves the size as a 16bit variable, so a 64kb file will be recorded as 0, and any bigger file will break.
but fortunately the file is only 11kb so it works, as the read-second-chunk behavior never triggers
at least this is a compression algorithm that isn't too complicated: it's simple RLE.
0xFF is a marker, and is followed by a byte of repeat count(-1) and a byte of value.
although technically this is the second time I hacked this compression, I did figure this out already back in, like, 2013?
this game uses a ton of hardcoded offsets into data files. I wonder if this was done with linker nonsense or if they had to be manually hardcoded in.
the latter is frighteningly possible
@foone@digipres.club that's good, I guess...