-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncompressed CHD support failure #163
Comments
this will be fixed once libchdr library is updated from upstream. this affects all mednafen/beetle cores using CHD. I tested on pce, updating libchdr read and runs the game fine even if it shows error=14 when reading audio tracks. error=14, returned from hunk_read_into_memory() means CHDERR_DECOMPRESSION_ERROR, which probably expects a compressed data. should be fixable upstream. |
@twinaphex I reworked the libchdr a lot recently to fix some issues and simplify the lib, including some of your requested changes to accodomodate libretro resync / upstreaming. |
From my end, this appears to have been fixed. Please verify. |
CHDs can be compressed in sevaral ways, single or multiple compression algorithms, or not at all.
Beetle Saturn cannot handle uncompressed CHDs, outputing a large amount of sector read errors.
I have tested this in 2 games, but believe this to affect any game under the same circumstances due to some issue with the
libchdr
implementation.Two examples I can give using the dumps below:
These dumps were converted to CHD using CHDMAN v0.218, with the following arguments:
chdman createcd -o lb_usa_none.chd -i "Last Bronx (USA).cue" -c none
chdman createcd -o vf2_usa_none.chd -i "Virtua Fighter 2 (USA).cue" -c none
note: other cores load the CHDs fine, with the exception of Yabause, which freezes with "Last Bronx" on a black screen after the Saturn animation, that maybe related to the game itself (not the dump) and/or why it can tie to this other issue exclusive (so far) to Last Bronx and Beetlke Saturn: https://github.com/libretro/beetle-saturn-libretro/issues/162
The resulting CHDs are as follows:
Last Bronx (USA) - CHD (compression: none)
Virtua Fighter 2 - CHD (compression: none)
In both cases the emulator ends up in the BIOS, the resulting errors are shown in the log:
Last Bronx - uncompressed CHD loading log
Virtua Fighter 2 - uncompressed CHD loading log
The text was updated successfully, but these errors were encountered: