- added detection of macOS 12 Monterey

This commit is contained in:
alexey.lysiuk 2021-06-08 10:19:43 +03:00
parent b3fd8ce12a
commit e166eeb13d

View file

@ -101,8 +101,9 @@ void I_DetectOS()
const char* name = "Unknown version"; const char* name = "Unknown version";
if (10 == version.majorVersion) switch (version.majorVersion)
{ {
case 10:
switch (version.minorVersion) switch (version.minorVersion)
{ {
case 9: name = "OS X Mavericks"; break; case 9: name = "OS X Mavericks"; break;
@ -114,13 +115,13 @@ void I_DetectOS()
case 15: name = "macOS Catalina"; break; case 15: name = "macOS Catalina"; break;
case 16: name = "macOS Big Sur"; break; case 16: name = "macOS Big Sur"; break;
} }
} break;
else if (11 == version.majorVersion) case 11:
{ name = "macOS Big Sur";
switch (version.minorVersion) break;
{ case 12:
case 0: name = "macOS Big Sur"; break; name = "macOS Monterey";
} break;
} }
char release[16] = "unknown"; char release[16] = "unknown";