Make —console work in the launcher.
As discussed on the ML, due to how this options is processed, the launcher setting it doesn’t make it take effect, so deal with it manually.
This commit is contained in:
parent
e74ebabc36
commit
314844e3c8
1 changed files with 5 additions and 0 deletions
|
@ -1221,6 +1221,11 @@ void QtLauncher::onRun()
|
||||||
if (a.arg.startsWith("prop:")) {
|
if (a.arg.startsWith("prop:")) {
|
||||||
QString v = a.arg.mid(5) + "=" + a.value;
|
QString v = a.arg.mid(5) + "=" + a.value;
|
||||||
opt->addOption("prop", v.toStdString());
|
opt->addOption("prop", v.toStdString());
|
||||||
|
} else if (a.arg == "--console") {
|
||||||
|
// this option is handled very early, in normal startup. If the user
|
||||||
|
// requests it via the launcher, parseOptions never sees it, so
|
||||||
|
// achieve the same result manually.
|
||||||
|
simgear::requestConsole();
|
||||||
} else {
|
} else {
|
||||||
opt->addOption(a.arg.toStdString(), a.value.toStdString());
|
opt->addOption(a.arg.toStdString(), a.value.toStdString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue