]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Added a MessageBox call in Sys_Error on Windows, matching the behavior of the wgl...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 27 Nov 2016 21:00:37 +0000 (21:00 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 29 Nov 2016 18:38:23 +0000 (19:38 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12293 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7fea37c6939ee2f26c9acf8582c8ee27e991d700

sys_sdl.c

index df3e3171bf70f95e0863d0014106d5eebf482eb8..d3564bac89fb0a76a699f9da6ddd092ef9b213ed 100644 (file)
--- 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);
 }