mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-26 19:44:16 +01:00
lime_qt/main.cpp: Put options in alphabetical order
This commit is contained in:
parent
b7f9daab8a
commit
ca5dde64ec
@ -302,24 +302,19 @@ GMainWindow::GMainWindow(Core::System& system_)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Launch game at path
|
||||||
|
if (args[i] == QStringLiteral("-g")) {
|
||||||
|
if (i >= args.size() - 1 || args[i + 1].startsWith(QChar::fromLatin1('-'))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
game_path = args[++i];
|
||||||
|
}
|
||||||
|
|
||||||
// Launch game in windowed mode
|
// Launch game in windowed mode
|
||||||
if (args[i] == QStringLiteral("-w")) {
|
if (args[i] == QStringLiteral("-w")) {
|
||||||
ui->action_Fullscreen->setChecked(false);
|
ui->action_Fullscreen->setChecked(false);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Launch game at path
|
|
||||||
if (args[i] == QStringLiteral("-g")) {
|
|
||||||
if (i >= args.size() - 1) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (args[i + 1].startsWith(QChar::fromLatin1('-'))) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
game_path = args[++i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!game_path.isEmpty()) {
|
if (!game_path.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user