Added new Windows and OSX versions to os_getversion

This commit is contained in:
SpaceBrain 2014-10-12 21:12:41 +02:00
parent 352b5ba4ca
commit ffb77ca782

View File

@ -146,6 +146,17 @@ void getversion(struct OsVersionInfo* info)
info->description = "Windows 8";
}
}
else if (versionInfo.dwMajorVersion == 6 && versionInfo.dwMinorVersion == 3 )
{
if (versionInfo.wProductType != VER_NT_WORKSTATION)
{
info->description = "Windows Server 2012 R2";
}
else
{
info->description = "Windows 8.1";
}
}
else
{
info->description = "Windows";
@ -210,6 +221,18 @@ void getversion(struct OsVersionInfo* info)
info->minorversion = 8;
info->revision = kern_minor;
break;
case 13:
info->description = "Mac OS X Mavericks";
info->majorversion = 10;
info->minorversion = 9;
info->revision = kern_minor;
break;
case 14:
info->description = "Mac OS X Yosemite";
info->majorversion = 10;
info->minorversion = 10;
info->revision = kern_minor;
break;
default:
break;
}