#if you want no CD audio
#OBJ_WINCD=$(OBJ_NOCD)
-OBJ_WGL= builddate.c sys_win.o vid_wgl.o conproc.o $(OBJ_SND_WIN) $(OBJ_WINCD) $(OBJ_COMMON)
+OBJ_WGL= builddate.c sys_win.o vid_wgl.o $(OBJ_SND_WIN) $(OBJ_WINCD) $(OBJ_COMMON)
# Link
# Note that Windows Vista users may need --large-address-aware because Vista seems to map over 500MB of application address space for its own purposes, which is a significant chunk taken out of the default 2GB address space, this option raises the limit to 4GB (or 3GB on Vista 32 and older versions of Windows).
HANDLE hinput, houtput;
+#ifdef QHOST
static HANDLE tevent;
static HANDLE hFile;
static HANDLE heventParent;
static HANDLE heventChild;
+#endif
/*
void Sys_Shutdown (void)
{
+#ifdef QHOST
if (tevent)
CloseHandle (tevent);
+#endif
if (cls.state == ca_dedicated)
FreeConsole ();
+#ifdef QHOST
// shut down QHOST hooks if necessary
DeinitConProc ();
+#endif
}
void Sys_PrintToTerminal(const char *text)
void Sys_InitConsole (void)
{
+#ifdef QHOST
int t;
// initialize the windows dedicated server console if needed
if (!tevent)
Sys_Error ("Couldn't create event");
+#endif
houtput = GetStdHandle (STD_OUTPUT_HANDLE);
hinput = GetStdHandle (STD_INPUT_HANDLE);
Sys_Error ("Couldn't create dedicated server console");
+#ifdef QHOST
#ifdef _WIN64
#define atoi _atoi64
#endif
}
InitConProc (hFile, heventParent, heventChild);
+#endif
}
// because sound is off until we become active