Files
BeamMP-Launcher/src/main.cpp
2020-12-26 23:35:43 +02:00

34 lines
962 B
C++

// 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
///
#include "Network/network.h"
#include "Security/Init.h"
#include "Startup.h"
#include <iostream>
#include <thread>
[[noreturn]] void flush(){
while(true){
std::cout.flush();
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
}
int main(int argc, char* argv[]) {
#ifdef DEBUG
std::thread th(flush);
th.detach();
#endif
InitLauncher(argc,argv);
//CheckDir(argc,argv);
LegitimacyCheck();
PreGame(GetGameDir());
InitGame(GetGameDir());
CoreNetwork();
}