mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-14 16:40:57 +00:00
Added detection for Windows 11 and Windows Server 2019.
This commit is contained in:
parent
730ed13e71
commit
25d030bf19
1 changed files with 16 additions and 5 deletions
|
@ -1295,7 +1295,10 @@ void Sys_Init (void)
|
|||
Q_strncpyz (string, sizeof(string), "Windows 8.1");
|
||||
}
|
||||
else if (osInfo.dwMajorVersion == 10 && osInfo.dwMinorVersion == 0) {
|
||||
Q_strncpyz (string, sizeof(string), "Windows 10");
|
||||
if (osInfo.dwBuildNumber >= 22000)
|
||||
Q_strncpyz (string, sizeof(string), "Windows 11");
|
||||
else
|
||||
Q_strncpyz (string, sizeof(string), "Windows 10");
|
||||
}
|
||||
#else // (_MSC_VER < 1300)
|
||||
if (osInfo.dwMajorVersion == 4) {
|
||||
|
@ -1343,10 +1346,18 @@ void Sys_Init (void)
|
|||
Q_strncpyz (string, sizeof(string), "Windows Server 2012 R2");
|
||||
}
|
||||
else if (osInfo.dwMajorVersion == 10 && osInfo.dwMinorVersion == 0) {
|
||||
if (osInfo.wProductType == VER_NT_WORKSTATION)
|
||||
Q_strncpyz (string, sizeof(string), "Windows 10");
|
||||
else
|
||||
Q_strncpyz (string, sizeof(string), "Windows Server 2016");
|
||||
if (osInfo.wProductType == VER_NT_WORKSTATION) {
|
||||
if (osInfo.dwBuildNumber >= 22000)
|
||||
Q_strncpyz (string, sizeof(string), "Windows 11");
|
||||
else
|
||||
Q_strncpyz (string, sizeof(string), "Windows 10");
|
||||
}
|
||||
else {
|
||||
if (osInfo.dwBuildNumber == 17763)
|
||||
Q_strncpyz (string, sizeof(string), "Windows Server 2019");
|
||||
else
|
||||
Q_strncpyz (string, sizeof(string), "Windows Server 2016");
|
||||
}
|
||||
}
|
||||
#endif // (_MSC_VER < 1300)
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue