Fixed late-night copy paste fail

This commit is contained in:
OpenSauce04 2024-10-06 14:27:06 +01:00 committed by OpenSauce
parent bc83c922a1
commit 38cbf4a069

View File

@ -354,8 +354,9 @@ GMainWindow::GMainWindow(Core::System& system_)
}
// Launch game at path
if (i == args.size() - 1 && !args[i + 1].startsWith(QChar::fromLatin1('-'))) {
game_path = args[++i];
if (i == args.size() - 1 && !args[i].startsWith(QChar::fromLatin1('-'))) {
game_path = args[i];
continue;
}
}