X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=sys_win.c;h=3b48f18d0eebfe9ba0af6f9e7d92af02d85a1786;hb=eb3110f1151a26dafff642d6214c562a4851de91;hp=5079e6ac57f3fccbdb9da3ee1e5bfa133eb2d3e1;hpb=913039faa5b22651954fe10a148ff1e87e4b84fd;p=xonotic%2Fdarkplaces.git diff --git a/sys_win.c b/sys_win.c index 5079e6ac..3b48f18d 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 "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 */