From 7fea37c6939ee2f26c9acf8582c8ee27e991d700 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 27 Nov 2016 21:00:37 +0000 Subject: [PATCH] Added a MessageBox call in Sys_Error on Windows, matching the behavior of the wgl client. The typical error to desktop will be more informative now. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12293 d7cf8633-e32d-0410-b094-e92efae38249 --- sys_sdl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys_sdl.c b/sys_sdl.c index df3e3171..d3564bac 100644 --- a/sys_sdl.c +++ b/sys_sdl.c @@ -67,6 +67,10 @@ void Sys_Error (const char *error, ...) Con_Printf ("Quake Error: %s\n", string); +#ifdef WIN32 + MessageBox(NULL, string, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP); +#endif + Host_Shutdown (); exit (1); } -- 2.39.2