refactor chdman extractcd to allow split .bin/.cue output #11727
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My partial solution to #5867 (only partial because it doesn't fix round-trip support fully, such as #10308).
Full list of things this does to
chdman
:-os
/--splitcue
option toextractcd
to force output to.cue
mode and output individual.bin
s, naming thembasename (Track n).bin
if there is more than 1 track.n
will be 1 digit if there are less than 10 tracks in the CD, 2 digits otherwise..bin
will be replaced by the file extension specified by-ob
/--outputbin
if applicable.-os
in case the existing-s
/--size
option is used forextractcd
in future..gdi
output. Should I change this?.raw
, format is as above instead of just appending the track number as 2 digits..cue
or.gdi
, case insensitive, instead of just doing a case sensitive search for them anywhere in the filename.-ob
/--outputbin
option fromextractdvd
.createdvd
andextractdvd
documentation too.Tell me if any changes should be made :)