Crash Handler 2.0 (#1466)

* Linux side done

* Win V2. need to fix message box.

* Fix message box.
This commit is contained in:
louist103 2022-09-26 19:54:25 -04:00 committed by GitHub
parent b3c7edcf76
commit c21b2e8f00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 465 additions and 162 deletions

View file

@ -4,6 +4,7 @@
#include "soh/OTRGlobals.h"
#include <libultraship/CrashHandler.h>
#include "soh/CrashHandlerExp.h"
s32 gScreenWidth = SCREEN_WIDTH;
@ -44,11 +45,7 @@ int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmd
int main(int argc, char** argv)
#endif
{
#ifdef __linux__
SetupHandlerLinux();
#elif _WIN32
SetUnhandledExceptionFilter(seh_filter);
#endif
CrashHandler_Init(CrashHandler_PrintSohData);
GameConsole_Init();
InitOTR();