This reverts commit 9859b44888.
This change causes 2 bugs with the GBC game Cannon Fodder
( Cannon Fodder (U) (M5) [C][!].gbc
md5sum 762d6c94874d8ac894ad100c0a4b50ab )
1) the 3D scenes flicker and there are some artifacts in the title
screen,
2) as soon as mission 2 starts, the CPU goes into an endless loop
and doesn't process input anymore - this is really nasty, as it
is even impossible to get out of gnuboy itself, at least in fb
mode.
i was skeptical about this inofficial patch since the beginning,
since it was not done by laguna himself but by some gamers, and
now it's confirmed that it's broken. afaict this patch includes
3-4 logical changes, if further issues are experienced it may make
sense to try one after the other to see if it fixes them.
using xz embedded (public domain code).
in order to be enable to use ordinary xz files, support for crc64
was activated. (if using crc32 only, one would need to use a command
like
xz --check=crc32 --lzma2=preset=6e,dict=64KiB
to create the files.
with crc64, one can use files that have been compressed with settings
up to -9 (however, those need 64+1MB for decompression).
since gb/gbc files are small anyway, using compression level 6-8 might
be preferable to keep client memory consumption down.
every step in xz compression level downwards decreases decomp mem usage
by 50% (so level 8 would need 32+1 MB, etc).