]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_unix.c
deduplicate Sys_Error()
[xonotic/darkplaces.git] / sys_unix.c
index d7b2ad9e7382510a01e94f2558f74adb7928a427..86a373c9ef82829e70630bd9b457c91f2d5c3e82 100644 (file)
@@ -24,23 +24,8 @@ void Sys_Shutdown (void)
        fflush(stdout);
 }
 
-void Sys_Error (const char *error, ...)
+void Sys_SDL_Dialog(const char *title, const char *string)
 {
-       va_list argptr;
-       char string[MAX_INPUTLINE];
-
-// change stdin to non blocking
-#ifndef WIN32
-       fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
-#endif
-       va_start (argptr,error);
-       dpvsnprintf (string, sizeof (string), error, argptr);
-       va_end (argptr);
-
-       Con_Printf(CON_ERROR "Engine Error: %s\n", string);
-
-       //Host_Shutdown ();
-       exit (1);
 }
 
 void Sys_Print(const char *text)