void Sys_Init (void) { #ifdef WIN32 OSVERSIONINFO vinfo; #endif #ifdef USE_INTEL_ASM #ifdef _WIN32 MaskExceptions (); #endif Sys_SetFPCW (); #endif #ifdef _WIN32 // make sure the timer is high precision, otherwise // NT gets 18ms resolution timeBeginPeriod (1); vinfo.dwOSVersionInfoSize = sizeof (vinfo); if (!GetVersionEx (&vinfo)) Sys_Error ("Couldn't get OS info"); if ((vinfo.dwMajorVersion < 4) || (vinfo.dwPlatformId == VER_PLATFORM_WIN32s)) { Sys_Error ("This version of " PROGRAM " requires at least Win95 or NT 4.0"); } #endif }
void Sys_Init(void) { MaskExceptions (); Sys_SetFPCW (); dos_outportb(0x43, 0x34); // set system timer to mode 2 dos_outportb(0x40, 0); // for the Sys_FloatTime() function dos_outportb(0x40, 0); Sys_InitFloatTime (); _go32_interrupt_stack_size = 4 * 1024;; _go32_rmcb_stack_size = 4 * 1024; }
static void Sys_Init (void) { MaskExceptions (); Sys_SetFPCW (); #if !USE_UCLOCK_TIME dos_outportb(0x43, 0x34); // set system timer to mode 2 dos_outportb(0x40, 0); // for the Sys_DoubleTime() function dos_outportb(0x40, 0); #endif /* ! USE_UCLOCK_TIME */ Sys_InitTime (); _go32_interrupt_stack_size = 4 * 1024; _go32_rmcb_stack_size = 4 * 1024; }
void Sys_Init(void) { MaskExceptions (); Sys_SetFPCW (); // 2000-07-28 DOSQuake time running too fast fix by Norberto Alfredo Bensa start /* dos_outportb(0x43, 0x34); // set system timer to mode 2 dos_outportb(0x40, 0); // for the Sys_FloatTime() function dos_outportb(0x40, 0); Sys_InitFloatTime (); */ // 2000-07-28 DOSQuake time running too fast fix by Norberto Alfredo Bensa end _go32_interrupt_stack_size = 4 * 1024;; _go32_rmcb_stack_size = 4 * 1024; }