1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00

When using Steam, push it on game args and environment

This commit is contained in:
Joshua Goins 2022-01-30 16:57:44 -05:00
parent 84f341ec78
commit 6ff0b2be5a

View file

@ -149,6 +149,10 @@ void LauncherCore::launchGame(const ProfileSettings& profile, const LoginAuth au
}
auto gameProcess = new QProcess(this);
if(profile.useSteam) {
gameArgs.push_back({"IsSteam", "1"});
gameProcess->environment() << "IS_FFXIV_LAUNCH_FROM_STEAM=1";
}
if(profile.enableDalamud) {
connect(gameProcess, &QProcess::readyReadStandardOutput, [this, gameProcess, profile] {