mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 04:01:31 +00:00
- added macOS Big Sur and ARM64 detection (#1151)
This commit is contained in:
parent
86cf5c9e53
commit
b0e2c993f7
1 changed files with 22 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue