aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/dllmain.cpp
diff options
context:
space:
mode:
authorF1F7Y <64418963+F1F7Y@users.noreply.github.com>2023-10-08 22:11:55 +0200
committerGitHub <noreply@github.com>2023-10-08 22:11:55 +0200
commit70a0114caa21ab7417c3cc74c1cf8f46cfd197a1 (patch)
tree01d31bc052f7fbc44234ae6224bda57673199cc2 /NorthstarDLL/dllmain.cpp
parent024605399a4878f97fd789416d9ea4234241f039 (diff)
downloadNorthstarLauncher-70a0114caa21ab7417c3cc74c1cf8f46cfd197a1.tar.gz
NorthstarLauncher-70a0114caa21ab7417c3cc74c1cf8f46cfd197a1.zip
Rewrite crash handler (#477)
The goal of this commit is to make the crash handler code more readable and fix some issues. - Format registers - Format Modules - Format stacktrace - Format mods - Create minidump
Diffstat (limited to 'NorthstarDLL/dllmain.cpp')
-rw-r--r--NorthstarDLL/dllmain.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/NorthstarDLL/dllmain.cpp b/NorthstarDLL/dllmain.cpp
index 87c72dcf..cfcc1a8c 100644
--- a/NorthstarDLL/dllmain.cpp
+++ b/NorthstarDLL/dllmain.cpp
@@ -49,7 +49,9 @@ bool InitialiseNorthstar()
InitialiseVersion();
CreateLogFiles();
- InitialiseCrashHandler();
+ g_pCrashHandler = new CCrashHandler();
+ bool bAllFatal = strstr(GetCommandLineA(), "-crash_handle_all") != NULL;
+ g_pCrashHandler->SetAllFatal(bAllFatal);
// Write launcher version to log
StartupLog();