]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
Remove the CONFIG_CD macro, and enable faketracks unconditionally.
[xonotic/darkplaces.git] / sys_win.c
index 5079e6ac57f3fccbdb9da3ee1e5bfa133eb2d3e1..de1f47187c2e0f766414bebf630c3d62cdcae9ed 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -19,18 +19,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 // 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"
-
-cvar_t sys_usetimegettime = {CVAR_SAVE, "sys_usetimegettime", "1", "use windows timeGetTime function (which has issues on some motherboards) for timing rather than QueryPerformanceCounter timer (which has issues on multicore/multiprocessor machines and processors which are designed to conserve power)"};
 
 HANDLE                         hinput, houtput;
 
@@ -199,16 +200,6 @@ char *Sys_ConsoleInput (void)
        return NULL;
 }
 
-double Sys_DoubleTime (void)
-{
-       return Sys_DoubleTime_Shared();
-}
-
-void Sys_Sleep(int microseconds)
-{
-       Sys_Sleep_Shared(microseconds);
-}
-
 char *Sys_GetClipboardData (void)
 {
        char *data = NULL;
@@ -367,6 +358,8 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLin
                }
        }
 
+       Sys_ProvideSelfFD();
+
        Host_Main();
 
        /* return success of application */