*/
// sys_win.c -- Win32 system interface code
-#include "quakedef.h"
#include <windows.h>
#include <mmsystem.h>
+#include <direct.h>
#ifdef SUPPORTDIRECTX
#include <dsound.h>
#endif
-#include "errno.h"
+
+#include "qtypes.h"
+
+#include "quakedef.h"
+#include <errno.h>
#include "resource.h"
#include "conproc.h"
-#include "direct.h"
HANDLE hinput, houtput;
houtput = GetStdHandle (STD_OUTPUT_HANDLE);
hinput = GetStdHandle (STD_INPUT_HANDLE);
- // LordHavoc: can't check cls.state because it hasn't been initialized yet
+ // LadyHavoc: can't check cls.state because it hasn't been initialized yet
// if (cls.state == ca_dedicated)
if (COM_CheckParm("-dedicated"))
{
- //if ((houtput == 0) || (houtput == INVALID_HANDLE_VALUE)) // LordHavoc: on Windows XP this is never 0 or invalid, but hinput is invalid
+ //if ((houtput == 0) || (houtput == INVALID_HANDLE_VALUE)) // LadyHavoc: on Windows XP this is never 0 or invalid, but hinput is invalid
{
if (!AllocConsole ())
Sys_Error ("Couldn't create dedicated server console (error code %x)", (unsigned int)GetLastError());