From 74869d9a041a6b07078a877af14eacd6f2b707a2 Mon Sep 17 00:00:00 2001 From: Osyotr Date: Thu, 6 Feb 2025 02:03:30 +0300 Subject: [PATCH] emulator: crash faster 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 cd981add2..73b434d80 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -44,10 +44,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); #endif // Start logger.