1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00
rpcs3/darwin/util/sysinfo_darwin.mm

30 lines
508 B
Plaintext
Raw Normal View History

#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;
}
}
namespace Darwin_ProcessInfo
{
bool getLowPowerModeEnabled()
{
return NSProcessInfo.processInfo.isLowPowerModeEnabled;
}
}