mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-27 15:26:19 +00:00
33 lines
613 B
Plaintext
33 lines
613 B
Plaintext
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
|
#import <Foundation/Foundation.h>
|
|
#pragma GCC diagnostic pop
|
|
|
|
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;
|
|
}
|
|
}
|