mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-23 03:02:53 +01:00
ce7b1576e0
Change low to reduced Low Power Mode detection Fix namespace space Low Power Mode detection Fix namespace space Low Power Mode detection
30 lines
508 B
Plaintext
30 lines
508 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;
|
|
}
|
|
}
|
|
|
|
namespace Darwin_ProcessInfo
|
|
{
|
|
bool getLowPowerModeEnabled()
|
|
{
|
|
return NSProcessInfo.processInfo.isLowPowerModeEnabled;
|
|
}
|
|
}
|