]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Made Sys_Error print the error message to the console / logfile.
authortomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Aug 2004 16:43:41 +0000 (16:43 +0000)
committertomaz <tomaz@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Aug 2004 16:43:41 +0000 (16:43 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4348 d7cf8633-e32d-0410-b094-e92efae38249

sys_linux.c
sys_sdl.c
sys_win.c

index 499aaada5c43ae599ed3f4dfffd8a28df0b4b836..1df663ae20b5934b80c31eca8dad65aa7c0b8629 100644 (file)
@@ -44,6 +44,10 @@ void Sys_Error (const char *error, ...)
        va_end (argptr);
        fprintf(stderr, "Error: %s\n", string);
 
+       Con_Print ("Quake Error: ");
+       Con_Print (string);
+       Con_Print ("\n");
+
        Host_Shutdown ();
        exit (1);
 }
index bc48f44049ef53cf6a54215ddded806de7ed7c37..715d094b40a1741da660426c38db63ad56d141bc 100644 (file)
--- a/sys_sdl.c
+++ b/sys_sdl.c
@@ -46,6 +46,10 @@ void Sys_Error (const char *error, ...)
        va_end (argptr);
        fprintf(stderr, "Error: %s\n", string);
 
+       Con_Print ("Quake Error: ");
+       Con_Print (string);
+       Con_Print ("\n");
+
        Host_Shutdown ();
        exit (1);
 }
index 8e3c628f850ef06d14d2beb96aa4fee1db77458e..f53745e560ef2485da9e1631e1ac75ae2ad36e97 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -73,10 +73,14 @@ void Sys_Error (const char *error, ...)
        if (!in_sys_error0 && cls.state != ca_dedicated)
        {
                in_sys_error0 = 1;
-               VID_Shutdown();
+               VID_Shutdown();     
        }
        MessageBox(NULL, text, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
 
+       Con_Print ("Quake Error: ");
+       Con_Print (text);
+       Con_Print ("\n");
+
        if (!in_sys_error1)
        {
                in_sys_error1 = 1;