]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
disabled QHOST by default (can be enabled with an edit to sys_win.c and
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Apr 2008 13:09:21 +0000 (13:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Apr 2008 13:09:21 +0000 (13:09 +0000)
the re-addition of conproc.c), I don't think anyone ever uses it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8240 d7cf8633-e32d-0410-b094-e92efae38249

makefile.inc
sys_win.c

index 279fa2e9c73df113a1594295a8cc1e10b7b90821..53567839f98d7c33f2425f1f1f329cf88e9911c2 100644 (file)
@@ -260,7 +260,7 @@ OBJ_WINCD=cd_win.o
 #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).
index 554ffd7d2f875d57eb89640784196cb3278d87ac..f12930d04b9d6624a99cc944c53cc0b0e4a6e499 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -34,10 +34,12 @@ cvar_t sys_usetimegettime = {CVAR_SAVE, "sys_usetimegettime", "1", "use windows
 
 HANDLE                         hinput, houtput;
 
+#ifdef QHOST
 static HANDLE  tevent;
 static HANDLE  hFile;
 static HANDLE  heventParent;
 static HANDLE  heventChild;
+#endif
 
 
 /*
@@ -94,14 +96,18 @@ void Sys_Error (const char *error, ...)
 
 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)
@@ -308,6 +314,7 @@ char *Sys_GetClipboardData (void)
 
 void Sys_InitConsole (void)
 {
+#ifdef QHOST
        int t;
 
        // initialize the windows dedicated server console if needed
@@ -315,6 +322,7 @@ void Sys_InitConsole (void)
 
        if (!tevent)
                Sys_Error ("Couldn't create event");
+#endif
 
        houtput = GetStdHandle (STD_OUTPUT_HANDLE);
        hinput = GetStdHandle (STD_INPUT_HANDLE);
@@ -334,6 +342,7 @@ void Sys_InitConsole (void)
                        Sys_Error ("Couldn't create dedicated server console");
 
 
+#ifdef QHOST
 #ifdef _WIN64
 #define atoi _atoi64
 #endif
@@ -357,6 +366,7 @@ void Sys_InitConsole (void)
                }
 
                InitConProc (hFile, heventParent, heventChild);
+#endif
        }
 
 // because sound is off until we become active