Skip to content

Commit

Permalink
Check for game process before do anything
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieEldridge committed Oct 2, 2024
1 parent 2a522ca commit 90d8085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90d8085

Please sign in to comment.