From 53fd27b88536958c5e7a9ce968614080106a950c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 1 May 2004 01:44:07 +0000 Subject: [PATCH] disable "drive not ready", etc. dialogs --- stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp index d7415b63ac..a6b4941002 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_Win32.cpp @@ -17,6 +17,10 @@ ArchHooks_Win32::ArchHooks_Win32() { SetUnhandledExceptionFilter(CrashHandler); TimeCritMutex = new RageMutex("TimeCritMutex"); + + /* Disable critical errors, and handle them internally. We never want the + * "drive not ready", etc. dialogs to pop up. */ + SetErrorMode( SetErrorMode(0) | SEM_FAILCRITICALERRORS ); } ArchHooks_Win32::~ArchHooks_Win32()