X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sys_win.c;h=de1f47187c2e0f766414bebf630c3d62cdcae9ed;hb=8fcdf7d171587d5dbe838c9e9db91a645cd6b10e;hp=5079e6ac57f3fccbdb9da3ee1e5bfa133eb2d3e1;hpb=913039faa5b22651954fe10a148ff1e87e4b84fd;p=xonotic%2Fdarkplaces.git diff --git a/sys_win.c b/sys_win.c index 5079e6ac..de1f4718 100644 --- 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 #include +#include #ifdef SUPPORTDIRECTX #include #endif -#include "errno.h" + +#include "qtypes.h" + +#include "quakedef.h" +#include #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 */