mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
Crash Handler 2.0 (#1466)
* Linux side done * Win V2. need to fix message box. * Fix message box.
This commit is contained in:
parent
b3c7edcf76
commit
c21b2e8f00
6 changed files with 465 additions and 162 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue