From 544a22a43115175d3a4970dfaaf75bc673a05306 Mon Sep 17 00:00:00 2001 From: Osyotr Date: Thu, 20 Nov 2025 23:35:35 +0300 Subject: [PATCH] emulator: crash faster (#2360) By disabling Windows Error Reporting. --- src/emulator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index ad407f9b6..fb187cfae 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -58,10 +58,11 @@ Frontend::WindowSDL* g_window = nullptr; namespace Core { Emulator::Emulator() { - // Initialize NT API functions and set high priority + // Initialize NT API functions, set high priority and disable WER #ifdef _WIN32 Common::NtApi::Initialize(); SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS); + SetErrorMode(SetErrorMode(0) | SEM_NOGPFAULTERRORBOX); // need to init this in order for winsock2 to work WORD versionWanted = MAKEWORD(2, 2); WSADATA wsaData;