]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
sys: Rename Sys_Print(f)ToTerminal to Sys_Print(f) for consistency
[xonotic/darkplaces.git] / sys_win.c
index ee27f1eb0dbd1d22c0f8a4dfb34c0ce10ef7abde..237670fc148159df9709b3058632687fa8fc7f75 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -83,7 +83,7 @@ void Sys_Error (const char *error, ...)
        if (!in_sys_error1)
        {
                in_sys_error1 = 1;
-               Host_Shutdown ();
+               //Host_Shutdown ();
        }
 
 // shut down QHOST hooks if necessary
@@ -112,7 +112,7 @@ void Sys_Shutdown (void)
 #endif
 }
 
-void Sys_PrintToTerminal(const char *text)
+void Sys_Print(const char *text)
 {
        DWORD dummy;
        extern HANDLE houtput;
@@ -135,25 +135,16 @@ char *Sys_ConsoleInput (void)
        for ( ;; )
        {
                if (!GetNumberOfConsoleInputEvents (hinput, &numevents))
-               {
-                       cls.state = ca_disconnected;
                        Sys_Error ("Error getting # of console events (error code %x)", (unsigned int)GetLastError());
-               }
 
                if (numevents <= 0)
                        break;
 
                if (!ReadConsoleInput(hinput, recs, 1, &numread))
-               {
-                       cls.state = ca_disconnected;
                        Sys_Error ("Error reading console input (error code %x)", (unsigned int)GetLastError());
-               }
 
                if (numread != 1)
-               {
-                       cls.state = ca_disconnected;
                        Sys_Error ("Couldn't read console input (error code %x)", (unsigned int)GetLastError());
-               }
 
                if (recs[0].EventType == KEY_EVENT)
                {