mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Implement proper macOS version check (#11352)
This commit is contained in:
parent
0d1c0e72a6
commit
ef66b002e0
3 changed files with 45 additions and 0 deletions
21
darwin/util/sysinfo_darwin.mm
Normal file
21
darwin/util/sysinfo_darwin.mm
Normal file
|
@ -0,0 +1,21 @@
|
|||
#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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue