[Changed]

"Shutdown" and "Exit" to inline for initialization

Co-Authored-By: Anonymous275 <36374260+Anonymous-275@users.noreply.github.com>
This commit is contained in:
Sam39
2022-07-21 11:34:46 +03:00
parent 027bb6b0d7
commit 6147ad46e7
2 changed files with 1 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ private: //variables
std::string Version{"2.0"};
Server ServerHandler{this};
std::string TargetBuild{"default"};
static std::atomic<bool> Shutdown, Exit;
static inline std::atomic<bool> Shutdown{false}, Exit{false};
std::string FullVersion{Version + ".99"};
VersionParser SupportedVersion{"0.24.1.2"};
IPC IPCToGame{"BeamMP_OUT", "BeamMP_Sem1", "BeamMP_Sem2", 0x1900000};

View File

@@ -20,7 +20,6 @@ LONG WINAPI CrashHandler(EXCEPTION_POINTERS* p) {
return EXCEPTION_EXECUTE_HANDLER;
}
std::atomic<bool> Launcher::Shutdown{false}, Launcher::Exit{false};
Launcher::Launcher(int argc, char* argv[]) : CurrentPath(std::filesystem::path(argv[0])), DiscordMessage("Just launched") {
Launcher::StaticAbort(this);
DiscordTime = std::time(nullptr);