From 130161128cc058dba156248c9418568e9b1b3a43 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 6 Oct 2024 12:28:43 +0200 Subject: [PATCH] Launcher: add notes about changes to unhandled exception filter The engine executable has been patched to no longer install this, therefore this function will never be called as we install a vectored exception filter anyways. This solves the issue where the crash message application gets called more than once when a crash occurs before the SDK detours are initialized. --- src/launcher/launcher.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/launcher/launcher.cpp b/src/launcher/launcher.cpp index 4f7763dd..16a3a0df 100644 --- a/src/launcher/launcher.cpp +++ b/src/launcher/launcher.cpp @@ -44,6 +44,10 @@ LONG WINAPI TopLevelExceptionFilter(EXCEPTION_POINTERS* pExceptionPointers) { // Don't run the unhandled exception filter from the // game if we have a valid vectored exception filter. + // + // NOTE: the exception filter is no longer set in the + // game executable, so this will never be called. Hook + // is left in place in case we do happen to reuse it. if (g_CrashHandler.IsValid()) { return NULL;