DWORD dummy;
extern HANDLE houtput;
if (cls.state == ca_dedicated)
- WriteFile(houtput, text, strlen (text), &dummy, NULL);
+ WriteFile(houtput, text, (DWORD) strlen(text), &dummy, NULL);
}
/*
LARGE_INTEGER PerformanceCount;
if (!QueryPerformanceFrequency (&PerformanceFreq))
- Sys_Error ("No hardware timer available");
+ {
+ Con_Printf ("No hardware timer available");
+ // fall back to timeGetTime
+ Cvar_SetValueQuick(&sys_usetimegettime, true);
+ return Sys_DoubleTime();
+ }
QueryPerformanceCounter (&PerformanceCount);
#ifdef __BORLANDC__
void Sys_InitConsole (void)
{
+ int t;
+
// initialize the windows dedicated server console if needed
tevent = CreateEvent(NULL, false, false, NULL);
hinput = GetStdHandle (STD_INPUT_HANDLE);
houtput = GetStdHandle (STD_OUTPUT_HANDLE);
+#ifdef WIN64
+#define atoi _atoi64
+#endif
// give QHOST a chance to hook into the console
if ((t = COM_CheckParm ("-HFILE")) > 0)
{
{
double frameoldtime, framenewtime;
MEMORYSTATUS lpBuffer;
- int t;
/* previous instances do not exist in Win32 */
if (hPrevInstance)