diff --git a/src/main.cpp b/src/main.cpp old mode 100755 new mode 100644 index 26e61ed..dad4fd4 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,43 +1,9 @@ -// Copyright (c) 2019-present Anonymous275. -// BeamMP Launcher code is not in the public domain and is not free software. -// One must be granted explicit permission by the copyright holder in order to modify or distribute any part of the source or binaries. -// Anything else is prohibited. Modified works may not be published and have be upstreamed to the official repository. /// -/// Created by Anonymous275 on 7/16/2020 +/// Created by Anonymous275 on 12/26/21 +/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info. /// -#include "Network/network.h" -#include "Security/Init.h" -#include "Startup.h" -#include -#include "Logger.h" -#include -#include "Http.h" -[[noreturn]] void flush(){ - while(true){ - std::cout.flush(); - std::this_thread::sleep_for(std::chrono::milliseconds(100)); - } -} +int main() { -int main(int argc, char* argv[]) { - #ifdef DEBUG - std::thread th(flush); - th.detach(); - #endif - GetEP(argv[0]); - - InitLauncher(argc,argv); - - try { - LegitimacyCheck(); - }catch (std::exception& e){ - fatal("Main 1 : " + std::string(e.what())); - } - - PreGame(GetGameDir()); - InitGame(GetGameDir()); - CoreNetwork(); - - ///TODO: make sure to use argv[0] for everything that should be in the same dir (mod down ect...) -} + return 0; +} \ No newline at end of file