diff --git a/CMakeLists.txt b/CMakeLists.txt index ee33217..3daa6bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ add_executable(${PROJECT_NAME} #src/gui/Gui.cpp include/Json.h src/gui/gifs.cpp src/gui/gifs.h - src/Network/Http.cpp include/Http.h + src/Network/HttpAPI.cpp include/HttpAPI.h src/Network/Server.cpp include/Server.h src/Network/Login.cpp src/Network/Update.cpp src/Network/Compressor.cpp include/Compressor.h diff --git a/include/Http.h b/include/HttpAPI.h similarity index 100% rename from include/Http.h rename to include/HttpAPI.h diff --git a/src/Handler.cpp b/src/Handler.cpp index e94553f..b82366d 100644 --- a/src/Handler.cpp +++ b/src/Handler.cpp @@ -7,8 +7,9 @@ #include "Memory/Memory.h" #include "Memory/BeamNG.h" #include "Launcher.h" +#include "HttpAPI.h" #include "Logger.h" -#include "Http.h" + void Launcher::HandleIPC(const std::string& Data) { char Code = Data.at(0), SubCode = 0; diff --git a/src/Launcher.cpp b/src/Launcher.cpp index a4f36c6..fb7de09 100644 --- a/src/Launcher.cpp +++ b/src/Launcher.cpp @@ -8,7 +8,7 @@ #include "Launcher.h" #include "Logger.h" #include -#include "Http.h" +#include "HttpAPI.h" #include #include #include @@ -125,6 +125,7 @@ void Launcher::WaitForGame() { std::this_thread::sleep_for(std::chrono::seconds(2)); } LOG(INFO) << "Game process was lost"; + GamePID = 0; } void Launcher::ListenIPC() { diff --git a/src/Network/Http.cpp b/src/Network/HttpAPI.cpp similarity index 99% rename from src/Network/Http.cpp rename to src/Network/HttpAPI.cpp index 5684967..4053092 100644 --- a/src/Network/Http.cpp +++ b/src/Network/HttpAPI.cpp @@ -5,10 +5,10 @@ #define CPPHTTPLIB_OPENSSL_SUPPORT #include #include "Launcher.h" +#include "HttpAPI.h" #include #include "Logger.h" #include -#include "Http.h" #include #include diff --git a/src/Network/Login.cpp b/src/Network/Login.cpp index a8d9e10..cb3f684 100644 --- a/src/Network/Login.cpp +++ b/src/Network/Login.cpp @@ -4,8 +4,8 @@ /// #include "Launcher.h" +#include "HttpAPI.h" #include "Logger.h" -#include "Http.h" #include "Json.h" void UpdateKey(const std::string& newKey){ diff --git a/src/Network/Update.cpp b/src/Network/Update.cpp index f9b29b7..a4bafac 100644 --- a/src/Network/Update.cpp +++ b/src/Network/Update.cpp @@ -4,8 +4,8 @@ /// #include "Launcher.h" +#include "HttpAPI.h" #include "Logger.h" -#include "Http.h" #include "Json.h" VersionParser::VersionParser(const std::string &from_string) {