*/
// conproc.c
+#include "quakedef.h"
+
#include <windows.h>
#include <wchar.h>
#include "conproc.h"
-#include "quakedef.h"
HANDLE heventDone;
HANDLE hfileBuffer;
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);
if (!heventDone)
{
- Con_SafePrintf ("Couldn't create heventDone\n");
+ Con_Print("Couldn't create heventDone\n");
return;
}
&dwID))
{
CloseHandle (heventDone);
- Con_SafePrintf ("Couldn't create QHOST thread\n");
+ Con_Print("Couldn't create QHOST thread\n");
return;
}
// hfileBuffer is invalid. Just leave.
if (!pBuffer)
{
- Con_SafePrintf ("Invalid hfileBuffer\n");
+ Con_Print("Invalid hfileBuffer\n");
break;
}
}
-int CharToCode (char c)
+int CharToCode (int c)
{
char upper;