@@ -97,7 +97,7 @@ constexpr int MODE_GDI = 2;
97
97
#define OPTION_INPUT " input"
98
98
#define OPTION_OUTPUT " output"
99
99
#define OPTION_OUTPUT_BIN " outputbin"
100
- #define OPTION_OUTPUT_SPLIT " split "
100
+ #define OPTION_OUTPUT_SPLITBIN " splitbin "
101
101
#define OPTION_OUTPUT_FORCE " force"
102
102
#define OPTION_INPUT_START_BYTE " inputstartbyte"
103
103
#define OPTION_INPUT_START_HUNK " inputstarthunk"
@@ -630,7 +630,7 @@ static const option_description s_options[] =
630
630
{ OPTION_INPUT_PARENT, " ip" , true , " <filename>: parent file name for input CHD" },
631
631
{ OPTION_OUTPUT, " o" , true , " <filename>: output file name" },
632
632
{ OPTION_OUTPUT_BIN, " ob" , true , " <filename>: output file name for binary data" },
633
- { OPTION_OUTPUT_SPLIT, " sb" , false , " : output one binary file per track" },
633
+ { OPTION_OUTPUT_SPLITBIN, " sb" , false , " : output one binary file per track" },
634
634
{ OPTION_OUTPUT_FORCE, " f" , false , " : force overwriting an existing file" },
635
635
{ OPTION_OUTPUT_PARENT, " op" , true , " <filename>: parent file name for output CHD" },
636
636
{ OPTION_INPUT_START_BYTE, " isb" , true , " <offset>: starting byte offset within the input" },
@@ -785,7 +785,7 @@ static const command_description s_commands[] =
785
785
{
786
786
REQUIRED OPTION_OUTPUT,
787
787
OPTION_OUTPUT_BIN,
788
- OPTION_OUTPUT_SPLIT ,
788
+ OPTION_OUTPUT_SPLITBIN ,
789
789
OPTION_OUTPUT_FORCE,
790
790
REQUIRED OPTION_INPUT,
791
791
OPTION_INPUT_PARENT,
@@ -2568,11 +2568,11 @@ static void do_extract_cd(parameters_map ¶ms)
2568
2568
default_name.erase (chop, default_name.size ());
2569
2569
2570
2570
// GDIs will always output as split bin
2571
- bool is_splitbin = mode == MODE_GDI || params.find (OPTION_OUTPUT_SPLIT ) != params.end ();
2571
+ bool is_splitbin = mode == MODE_GDI || params.find (OPTION_OUTPUT_SPLITBIN ) != params.end ();
2572
2572
if (!is_splitbin && cdrom->is_gdrom () && mode == MODE_CUEBIN)
2573
2573
{
2574
2574
// GD-ROM cue/bin is in Redump format which should always be split by tracks
2575
- util::stream_format (std::cout, " Warning: --%s is required for this specific combination of input disc type and output format, enabling automatically\n " , OPTION_OUTPUT_SPLIT );
2575
+ util::stream_format (std::cout, " Warning: --%s is required for this specific combination of input disc type and output format, enabling automatically\n " , OPTION_OUTPUT_SPLITBIN );
2576
2576
is_splitbin = true ;
2577
2577
}
2578
2578
@@ -2599,15 +2599,15 @@ static void do_extract_cd(parameters_map ¶ms)
2599
2599
{
2600
2600
output_bin_file_str = output_bin_file_fnd->second ;
2601
2601
2602
- chop = (* output_bin_file_str). find_last_of (' .' );
2602
+ chop = output_bin_file_str-> find_last_of (' .' );
2603
2603
if (chop != std::string::npos)
2604
2604
{
2605
- output_bin_file_ext = (* output_bin_file_str). substr (chop, (* output_bin_file_str). size () - chop);
2606
- (* output_bin_file_str). erase (chop, (* output_bin_file_str). size ());
2605
+ output_bin_file_ext = output_bin_file_str-> substr (chop, output_bin_file_str-> size () - chop);
2606
+ output_bin_file_str-> erase (chop, output_bin_file_str-> size ());
2607
2607
}
2608
2608
}
2609
2609
2610
- if ((* output_bin_file_str). find (' "' ) != std::string::npos || output_bin_file_ext.find (' "' ) != std::string::npos)
2610
+ if (output_bin_file_str-> find (' "' ) != std::string::npos || output_bin_file_ext.find (' "' ) != std::string::npos)
2611
2611
report_error (1 , " Output bin filename (%s%s) must not contain quotation marks" , *output_bin_file_str, output_bin_file_ext);
2612
2612
2613
2613
// print some info
@@ -2690,7 +2690,7 @@ static void do_extract_cd(parameters_map ¶ms)
2690
2690
2691
2691
if (is_splitbin && !found_track_variable)
2692
2692
{
2693
- report_error (1 , " A track number variable (%%t) must be specified in the output bin filename when --%s is enabled\n " , OPTION_OUTPUT_SPLIT );
2693
+ report_error (1 , " A track number variable (%%t) must be specified in the output bin filename when --%s is enabled\n " , OPTION_OUTPUT_SPLITBIN );
2694
2694
}
2695
2695
2696
2696
// verify output BIN file doesn't exist
@@ -2913,7 +2913,7 @@ static void do_extract_cd(parameters_map ¶ms)
2913
2913
// delete the output files
2914
2914
output_bin_file.reset ();
2915
2915
output_toc_file.reset ();
2916
- for (auto output_bin_filename : output_bin_filenames)
2916
+ for (auto const & output_bin_filename : output_bin_filenames)
2917
2917
osd_file::remove (output_bin_filename);
2918
2918
osd_file::remove (*output_file_str->second );
2919
2919
throw ;
0 commit comments