mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Fix Oven not properly handling native separators
This commit is contained in:
parent
7298cd6940
commit
b12018ccf3
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ Oven::Oven(int argc, char* argv[]) :
|
|||
if (parser.isSet(CLI_INPUT_PARAMETER) || parser.isSet(CLI_OUTPUT_PARAMETER)) {
|
||||
if (parser.isSet(CLI_INPUT_PARAMETER) && parser.isSet(CLI_OUTPUT_PARAMETER)) {
|
||||
BakerCLI* cli = new BakerCLI(this);
|
||||
cli->bakeFile(parser.value(CLI_INPUT_PARAMETER), parser.value(CLI_OUTPUT_PARAMETER));
|
||||
QUrl inputUrl(QDir::fromNativeSeparators(parser.value(CLI_INPUT_PARAMETER)));
|
||||
QUrl outputUrl(QDir::fromNativeSeparators(parser.value(CLI_OUTPUT_PARAMETER)));
|
||||
cli->bakeFile(inputUrl, outputUrl.toString());
|
||||
} else {
|
||||
parser.showHelp();
|
||||
QApplication::quit();
|
||||
|
|
Loading…
Reference in a new issue