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
chdman 0.263 error does not compress dreamcast games #12081
Comments
The exact cause seems to be this code here. Lines 2889 to 2905 in 1615b85
It's setting the offset values for tracks 4 and 5 to non-zero values, so when it tries to read track 4 it ends up eventually seeking to the end of the file and ends up reading 0 bytes resulting in the "error reading input file" message. Lines 454 to 463 in 1615b85
Maybe @rb6502 will know how to handle this case properly? I don't know much about Dreamcast stuff so I don't know why this code exists and what could break by removing it. |
bin/cue support for GD-ROM discs came from external patches, and as was noted this specific regression was introduced by @alucryd so they would be the best suited to address it. |
I would not, as I stated when submitting the patch, I don't speak C++ and I barely understood what I was doing, my limited testing seemed to work so I submitted it for review. |
Thanks! Will give it a try later today. I have some oxyromon users I can ask for help as well. |
…Hub #12081). (#12087) This should greatly improve data integrity when creating and extracting GD-ROM images. * util/cdrom.cpp: Refactored parse_cue to handle GD-ROMs. * util/cdrom.cpp: Don't discard any data from GD-ROM cue/bin input including pre-gap data. * tools/chdman.cpp: Fixed splitframes handling. * tools/chdman.cpp: Added warning when extracting GD-ROM CHDs to cue/bin format.
…Hub mamedev#12081). (mamedev#12087) This should greatly improve data integrity when creating and extracting GD-ROM images. * util/cdrom.cpp: Refactored parse_cue to handle GD-ROMs. * util/cdrom.cpp: Don't discard any data from GD-ROM cue/bin input including pre-gap data. * tools/chdman.cpp: Fixed splitframes handling. * tools/chdman.cpp: Added warning when extracting GD-ROM CHDs to cue/bin format.
MAME version
0.263
System information
Windows 10
INI configuration details
No response
Emulated system/software
No response
Incorrect behaviour
chdman 0.263 error does not compress dreamcast games, I tried with version 0.262 and it also has that problem.
Expected behaviour
I tried with version 0.261 and I had no problems with it.
Steps to reproduce
C:\Users\xxxx\Desktop\chdman> for /R %i in (*.cue *.gdi *.iso) do chdman createcd -i "%i" -o "%~ni.chd"
C:\Users\xxxx\Desktop\chdman>chdman createcd -i "C:\Users\xxxx\Desktop\chdman\Star Wars - Episode I - Racer (USA).cue" -o "Star Wars Episode I - Racer (USA).chd"
chdman - MAME Compressed Hunks of Data (CHD) manager 0.263 (mame0263)
Output CHD: Star Wars - Episode I - Racer (USA).chd
Input file: C:\Users\xxxx\Desktop\chdman\Star Wars - Episode I - Racer (USA).cue
Input tracks: 5
Input length: 122:02:00
Compression: cdlz (CD LZMA), cdzl (CD Deflate), cdf1 (CD FLAC)
Logical size: 1,344,333,888
Error reading input file (C:\Users\xxxx\Desktop\chdman\Star Wars - Episode I - Racer (USA) (Track 4).bin)'
exception occurred: std::exception
Error during compression: Input/output error
Additional details
No response
The text was updated successfully, but these errors were encountered: