lime_qt/main.cpp: Put options in alphabetical order

This commit is contained in:
OpenSauce04 2024-10-01 17:53:07 +01:00 committed by OpenSauce
parent b7f9daab8a
commit ca5dde64ec

View File

@ -302,24 +302,19 @@ GMainWindow::GMainWindow(Core::System& system_)
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
if (args[i] == QStringLiteral("-w")) {
ui->action_Fullscreen->setChecked(false);
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()) {