]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - conproc.c
Add an in_releaseall command for debugging/working around stuck keys.
[xonotic/darkplaces.git] / conproc.c
index 560be1f12f1b7e42b831f318bfd20e75f9c12a17..ccbb849c9c2a44c0183521a988af2dc80b86bc2e 100644 (file)
--- a/conproc.c
+++ b/conproc.c
@@ -19,9 +19,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // conproc.c
 
+#include "quakedef.h"
+
 #include <windows.h>
+#include <wchar.h>
 #include "conproc.h"
-#include "quakedef.h"
 
 HANDLE heventDone;
 HANDLE hfileBuffer;
@@ -37,7 +39,7 @@ BOOL GetScreenBufferLines (int *piLines);
 BOOL SetScreenBufferLines (int iLines);
 BOOL ReadText (LPTSTR pszText, int iBeginLine, int iEndLine);
 BOOL WriteText (LPCTSTR szText);
-int CharToCode (char c);
+int CharToCode (int c);
 BOOL SetConsoleCXCY(HANDLE hStdout, int cx, int cy);
 
 
@@ -58,7 +60,7 @@ void InitConProc (HANDLE hFile, HANDLE heventParent, HANDLE heventChild)
 
        if (!heventDone)
        {
-               Con_SafePrintf ("Couldn't create heventDone\n");
+               Con_Print("Couldn't create heventDone\n");
                return;
        }
 
@@ -70,7 +72,7 @@ void InitConProc (HANDLE hFile, HANDLE heventParent, HANDLE heventChild)
                                           &dwID))
        {
                CloseHandle (heventDone);
-               Con_SafePrintf ("Couldn't create QHOST thread\n");
+               Con_Print("Couldn't create QHOST thread\n");
                return;
        }
 
@@ -113,7 +115,7 @@ DWORD RequestProc (DWORD dwNichts)
        // hfileBuffer is invalid.  Just leave.
                if (!pBuffer)
                {
-                       Con_SafePrintf ("Invalid hfileBuffer\n");
+                       Con_Print("Invalid hfileBuffer\n");
                        break;
                }
 
@@ -260,7 +262,7 @@ BOOL WriteText (LPCTSTR szText)
 }
 
 
-int CharToCode (char c)
+int CharToCode (int c)
 {
        char upper;