mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
Add Windows 11 detection
This commit is contained in:
parent
c4ed0cefde
commit
5b1b6f1db4
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ void I_DetectOS(void)
|
|||
}
|
||||
else if (info.dwMajorVersion == 10)
|
||||
{
|
||||
osname = (info.wProductType == VER_NT_WORKSTATION) ? "10 (or higher)" : "Server 2016 (or higher)";
|
||||
osname = (info.wProductType == VER_NT_WORKSTATION) ? (info.dwBuildNumber >= 22000 ? "11 (or higher)" : "10") : "Server 2016 (or higher)";
|
||||
sys_ostype = 3; // modern OS
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue