Skip to content

Commit 8335ada

Browse files
committed
chdman: Reuse same file if track format string is not defined in output bin filename
1 parent 0ed7a3a commit 8335ada

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/tools/chdman.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -2795,17 +2795,14 @@ static void do_extract_cd(parameters_map &params)
27952795

27962796
for (int tracknum = 0; tracknum < toc.numtrks; tracknum++)
27972797
{
2798-
if (is_splitbin)
2798+
if (track_filenames[tracknum] != trackbin_name)
27992799
{
28002800
totaloutputoffs += outputoffs;
28012801
outputoffs = 0;
28022802

28032803
if (mode != MODE_GDI)
28042804
discoffs = 0;
2805-
}
28062805

2807-
if (track_filenames[tracknum] != trackbin_name)
2808-
{
28092806
output_bin_file.reset();
28102807

28112808
trackbin_name = track_filenames[tracknum];

0 commit comments

Comments
 (0)