From 91f9948e2fa24f4180aa4314a2e3d9a26f9a50cb Mon Sep 17 00:00:00 2001 From: rarified Date: Sun, 16 Feb 2020 10:13:14 -0700 Subject: [PATCH] [c.f. Hoikas Discord>>OpenUru>>Dev] Restore exception handler after PhysX initialization seizes it. --- .../Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp index 75e88d7b..743427e7 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp @@ -1965,6 +1965,9 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC if( !gClient->StartInit() ) break; + // Reestablish exception handler after PhysX stole it + SetUnhandledExceptionFilter( plCustomUnhandledExceptionFilter ); + // I want it on top! I mean it! BringWindowToTop( gClient->GetWindowHandle() );