Skip to content

Commit

Permalink
closeGame() -> closeProcess()
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieEldridge committed Oct 30, 2023
1 parent e01bc7b commit 3653f17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions M2TWEOP Code/M2TWEOP GUI/gameRunnerUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace gameRunnerUI

if (startResult == false)
{
helpers::closeGame(dataG::data.gameData.exeName);
helpers::closeProcess(dataG::data.gameData.exeName);

isGetResponce = false;
}
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion M2TWEOP Code/M2TWEOP GUI/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
Expand Down
2 changes: 1 addition & 1 deletion M2TWEOP Code/M2TWEOP GUI/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 3653f17

Please sign in to comment.