Add Windows 11 detection

This commit is contained in:
Cacodemon345 2021-06-29 00:11:44 +06:00 committed by Christoph Oelckers
parent c4ed0cefde
commit 5b1b6f1db4

View file

@ -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;