mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-18 02:11:28 +00:00
22 lines
379 B
Plaintext
22 lines
379 B
Plaintext
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
namespace Darwin_Version
|
||
|
{
|
||
|
NSOperatingSystemVersion osver = NSProcessInfo.processInfo.operatingSystemVersion;
|
||
|
|
||
|
int getNSmajorVersion()
|
||
|
{
|
||
|
return osver.majorVersion;
|
||
|
}
|
||
|
|
||
|
int getNSminorVersion()
|
||
|
{
|
||
|
return osver.minorVersion;
|
||
|
}
|
||
|
|
||
|
int getNSpatchVersion()
|
||
|
{
|
||
|
return osver.patchVersion;
|
||
|
}
|
||
|
}
|