mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
XDS fix + exception when parameters not compatible
See title :)
This commit is contained in:
parent
4635329a5b
commit
a3ef46c21d
@ -235,6 +235,9 @@ void set_output_format (const char *format)
|
|||||||
ccx_options.transcript_settings.showEndTime = 1;
|
ccx_options.transcript_settings.showEndTime = 1;
|
||||||
ccx_options.transcript_settings.showCC = 0;
|
ccx_options.transcript_settings.showCC = 0;
|
||||||
ccx_options.transcript_settings.showMode = 1;
|
ccx_options.transcript_settings.showMode = 1;
|
||||||
|
} else {
|
||||||
|
// Throw exception
|
||||||
|
fatal(EXIT_INCOMPATIBLE_PARAMETERS, "timedtranscript cannot be set after -UCLA is used!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strcmp (format,"report")==0)
|
else if (strcmp (format,"report")==0)
|
||||||
@ -1266,9 +1269,8 @@ void parse_parameters (int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
if (strcmp (argv[i],"-xds")==0)
|
if (strcmp (argv[i],"-xds")==0)
|
||||||
{
|
{
|
||||||
if (!ccx_options.transcript_settings.isFinal){
|
// XDS can be set regardless of -UCLA (isFinal) usage.
|
||||||
ccx_options.transcript_settings.xds = 1;
|
ccx_options.transcript_settings.xds = 1;
|
||||||
}
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (strcmp (argv[i],"-xdsdebug")==0)
|
if (strcmp (argv[i],"-xdsdebug")==0)
|
||||||
@ -1506,6 +1508,9 @@ void parse_parameters (int argc, char *argv[])
|
|||||||
ccx_options.transcript_settings.relativeTimestamp = format[4] - '0';
|
ccx_options.transcript_settings.relativeTimestamp = format[4] - '0';
|
||||||
ccx_options.transcript_settings.xds = format[5] - '0';
|
ccx_options.transcript_settings.xds = format[5] - '0';
|
||||||
ccx_options.transcript_settings.useColors = format[6] - '0';
|
ccx_options.transcript_settings.useColors = format[6] - '0';
|
||||||
|
} else {
|
||||||
|
// Throw exception
|
||||||
|
fatal(EXIT_INCOMPATIBLE_PARAMETERS, "customtxt cannot be set after -UCLA is used!");
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user