From: havoc Date: Sun, 27 Nov 2016 21:00:37 +0000 (+0000) Subject: Added a MessageBox call in Sys_Error on Windows, matching the behavior of the wgl... X-Git-Tag: xonotic-v0.8.5~88^2~29 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7fea37c6939ee2f26c9acf8582c8ee27e991d700;p=xonotic%2Fdarkplaces.git 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 --- 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); }