From 6ff0b2be5a0965c338eef28470c717dc591c64fc Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 30 Jan 2022 16:57:44 -0500 Subject: [PATCH] When using Steam, push it on game args and environment --- src/launchercore.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/launchercore.cpp b/src/launchercore.cpp index b2d6f5a..287657c 100755 --- a/src/launchercore.cpp +++ b/src/launchercore.cpp @@ -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] {