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:
parent
ef953221a0
commit
f915997d70
1 changed files with 1 additions and 2 deletions
|
@ -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/"));
|
||||
|
|
Loading…
Add table
Reference in a new issue