Disabled discord since it randomly crashes smh

This commit is contained in:
Anonymous275
2022-01-19 23:08:37 +02:00
parent 2b73c120a8
commit 09b18a40c5
3 changed files with 10 additions and 5 deletions

View File

@@ -10,10 +10,16 @@
#include <windows.h>
#include <shellapi.h>
LONG WINAPI CrashHandler(EXCEPTION_POINTERS* p) {
LOG(ERROR) << "CAUGHT EXCEPTION! Code " << p->ExceptionRecord->ExceptionCode;
return EXCEPTION_EXECUTE_HANDLER;
}
Launcher::Launcher(int argc, char* argv[]) : CurrentPath(std::filesystem::path(argv[0])), DiscordMessage("Just launched") {
Launcher::StaticAbort(this);
Log::Init();
WindowsInit();
SetUnhandledExceptionFilter(CrashHandler);
LOG(INFO) << "Starting Launcher V" << FullVersion;
UpdateCheck();
}