- added macOS Big Sur and ARM64 detection (#1151)

This commit is contained in:
Cacodemon345 2020-08-09 18:06:11 +06:00 committed by GitHub
parent 86cf5c9e53
commit b0e2c993f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,9 @@ void I_DetectOS()
const char* name = "Unknown version";
if (10 == version.majorVersion) switch (version.minorVersion)
if (10 == version.majorVersion)
{
switch (version.minorVersion)
{
case 9: name = "OS X Mavericks"; break;
case 10: name = "OS X Yosemite"; break;
@ -110,6 +112,15 @@ void I_DetectOS()
case 13: name = "macOS High Sierra"; break;
case 14: name = "macOS Mojave"; break;
case 15: name = "macOS Catalina"; break;
case 16: name = "macOS Big Sur"; break;
}
}
else if (11 == version.majorVersion)
{
switch (version.minorVersion)
{
case 0: name = "macOS Big Sur"; break;
}
}
char release[16] = "unknown";
@ -125,6 +136,8 @@ void I_DetectOS()
"32-bit Intel";
#elif defined __x86_64__
"64-bit Intel";
#elif defined __aarch64__
"64-bit ARM";
#else
"Unknown";
#endif