diff --git a/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp b/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp index 4776d984..649a0613 100644 --- a/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp +++ b/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp @@ -109,14 +109,10 @@ namespace gameRunnerUI exit(0); } } - // Open Freecam if we are using the integration after waiting a bit for the game to start - std::this_thread::sleep_for(std::chrono::seconds(5)); - if (helpers::isProcessRunning(dataG::data.gameData.exeName) == false) - { - return; - } - if (dataG::data.gameData.freecamIntegration == true && dataG::data.gameData.freecamStarted == false) + if ((dataG::data.gameData.freecamIntegration == true && dataG::data.gameData.freecamStarted == false && helpers::isProcessRunning(dataG::data.gameData.exeName) == true)) { + std::this_thread::sleep_for(std::chrono::seconds(5)); + // Open Freecam if we are using the integration after waiting a bit for the game to start string currentFolder; string freecamFolder; string exePath;