1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 12:47:44 +00:00

Use QList::takeFirst in game runner

This commit is contained in:
Joshua Goins 2023-12-23 11:13:52 -05:00
parent ef953221a0
commit f915997d70

View file

@ -251,8 +251,7 @@ void GameRunner::launchExecutable(const Profile &profile, QProcess *process, con
arguments.append(args);
auto executable = arguments[0];
arguments.removeFirst();
const QString executable = arguments.takeFirst();
if (isGame)
process->setWorkingDirectory(profile.gamePath() + QStringLiteral("/game/"));