updatte
This commit is contained in:
parent
4d1e69bbe5
commit
ee61c994ac
2 changed files with 24 additions and 16 deletions
|
@ -67,10 +67,17 @@ using MRMediaRemoteGetNowPlayingInfoFunction = void (*)(
|
|||
|
||||
NSOperatingSystemVersion osVersion = [processInfo operatingSystemVersion];
|
||||
|
||||
NSString* version = [NSString stringWithFormat:@"%ld.%ld.%ld",
|
||||
osVersion.majorVersion,
|
||||
osVersion.minorVersion,
|
||||
osVersion.patchVersion];
|
||||
NSString* version;
|
||||
if (osVersion.patchVersion == 0) {
|
||||
version = [NSString stringWithFormat:@"%ld.%ld",
|
||||
osVersion.majorVersion,
|
||||
osVersion.minorVersion];
|
||||
} else {
|
||||
version = [NSString stringWithFormat:@"%ld.%ld.%ld",
|
||||
osVersion.majorVersion,
|
||||
osVersion.minorVersion,
|
||||
osVersion.patchVersion];
|
||||
}
|
||||
|
||||
// Dictionary to map macOS versions to their respective names
|
||||
NSDictionary<NSNumber*, NSString*>* versionNames =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue