From 90d8085ce741f74754628abc953b0d1008ec06d2 Mon Sep 17 00:00:00 2001 From: Medik Date: Wed, 2 Oct 2024 21:38:43 +0100 Subject: [PATCH] Check for game process before do anything --- M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp b/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp index f31624e3..4776d984 100644 --- a/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp +++ b/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp @@ -111,6 +111,10 @@ namespace gameRunnerUI } // 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) { string currentFolder;