Skip to content

Commit

Permalink
Rewrite crash handler (#477)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
F1F7Y authored Oct 8, 2023
1 parent 0246053 commit 70a0114
Show file tree
Hide file tree
Showing 3 changed files with 592 additions and 310 deletions.
4 changes: 3 additions & 1 deletion NorthstarDLL/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading

0 comments on commit 70a0114

Please sign in to comment.