Improved Launcher startup

This commit is contained in:
Anonymous275
2020-11-05 22:44:43 +02:00
parent ad91c65b55
commit 82870a23ac
31 changed files with 37 additions and 7844 deletions

View File

@@ -11,7 +11,7 @@
#include "Logger.h"
#include <thread>
#include <set>
extern int TraceBack;
std::set<std::string>* ConfList = nullptr;
bool TCPTerminate = false;
int DEFAULT_PORT = 4444;
@@ -197,15 +197,13 @@ int Handle(EXCEPTION_POINTERS *ep){
delete [] hex;
return 1;
}
[[noreturn]] void CoreNetwork(){
while(true){
void CoreNetwork(){
while(TraceBack >= 4){
__try{
CoreMain();
}__except(Handle(GetExceptionInformation())){}
std::this_thread::sleep_for(std::chrono::seconds(1));
}
}