Skip to content

Commit

Permalink
Add Windows 11 detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored and coelckers committed Jul 25, 2021
1 parent f679e88 commit 9e60613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/platform/win32/i_system.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 9e60613

Please sign in to comment.