Add Windows 11 detection

This commit is contained in:
Cacodemon345 2021-06-29 00:11:44 +06:00 committed by Emile Belanger
parent ed36ee70e5
commit 928a68d884

View file

@ -199,7 +199,7 @@ void I_DetectOS(void)
} }
else if (info.dwMajorVersion == 10) 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 sys_ostype = 3; // modern OS
} }
break; break;