diff --git a/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp b/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp index 82cc15c2..0ad96cab 100644 --- a/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp +++ b/M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp @@ -81,7 +81,7 @@ namespace gameRunnerUI if (startResult == false) { - helpers::closeGame(dataG::data.gameData.exeName); + helpers::closeProcess(dataG::data.gameData.exeName); isGetResponce = false; } @@ -183,7 +183,7 @@ namespace gameRunnerUI { if (startProcess.isGetResponce == false) { - helpers::closeGame(dataG::data.gameData.exeName); + helpers::closeProcess(dataG::data.gameData.exeName); } if (dataG::data.gameData.isDiscordRichPresenceEnabled == false) { diff --git a/M2TWEOP Code/M2TWEOP GUI/helpers.cpp b/M2TWEOP Code/M2TWEOP GUI/helpers.cpp index 9d6e5884..659b610e 100644 --- a/M2TWEOP Code/M2TWEOP GUI/helpers.cpp +++ b/M2TWEOP Code/M2TWEOP GUI/helpers.cpp @@ -62,7 +62,7 @@ bool helpers::loadTexture(const char* filename, GLuint* out_texture, int* out_wi return true; } -void helpers::closeGame(const string& exeName) +void helpers::closeProcess(const string& exeName) { HANDLE gameHNDL = NULL; PROCESSENTRY32 Pc = { sizeof(PROCESSENTRY32) }; diff --git a/M2TWEOP Code/M2TWEOP GUI/helpers.h b/M2TWEOP Code/M2TWEOP GUI/helpers.h index a29f4a51..2e6cc58f 100644 --- a/M2TWEOP Code/M2TWEOP GUI/helpers.h +++ b/M2TWEOP Code/M2TWEOP GUI/helpers.h @@ -8,7 +8,7 @@ class helpers static bool loadTexture(const char* filename, GLuint* out_texture, int* out_width, int* out_height); - static void closeGame(const string& exeName); + static void closeProcess(const string& exeName); static void updateMetrics();