45 vinfo.dwOSVersionInfoSize =
sizeof(vinfo);
47 if (!GetVersionEx(&vinfo))
50 char const* detected =
"win";
51 if (vinfo.dwMajorVersion < 4)
52 Sys_Error(
"UFO: AI requires windows version 4 or greater");
53 if (vinfo.dwPlatformId == VER_PLATFORM_WIN32s)
54 Sys_Error(
"UFO: AI doesn't run on Win32s");
55 else if (vinfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS)
57 else if (vinfo.dwPlatformId == VER_PLATFORM_WIN32_NT) {
58 if (vinfo.dwMajorVersion == 5 && vinfo.dwMinorVersion == 0)
60 else if (vinfo.dwMajorVersion == 5)
62 else if (vinfo.dwMajorVersion == 6)
63 detected =
"winVista";
69 GlobalMemoryStatus(&mem);
70 Com_Printf(
"Memory: %u MB\n", mem.dwTotalPhys >> 20);
void Sys_Error(const char *error,...)
int main(int argc, char **argv)
The entry point for linux server and client. Initializes the program and calls Qcommon_Frame in an in...
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
static void FixWorkingDirectory(void)