mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-03 06:16:15 +00:00
fixed crash when starting up
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user