fixed crash when starting up

This commit is contained in:
Anonymous275
2020-12-27 23:19:24 +02:00
parent eaa8796c02
commit 775e44a68f
3 changed files with 11 additions and 7 deletions

View File

@@ -9,6 +9,7 @@
#include "Security/Init.h"
#include "Startup.h"
#include <iostream>
#include "Logger.h"
#include <thread>
@@ -26,7 +27,11 @@ int main(int argc, char* argv[]) {
#endif
InitLauncher(argc,argv);
//CheckDir(argc,argv);
LegitimacyCheck();
try {
LegitimacyCheck();
}catch (std::exception&e){
fatal(e.what());
}
PreGame(GetGameDir());
InitGame(GetGameDir());
CoreNetwork();