mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
mac-syphon: Remove macOS 10.15-only code
The minimum version of macOS for OBS is 11.0 now, so this can be removed
This commit is contained in:
parent
e1a202b370
commit
be42d97315
|
@ -549,25 +549,14 @@ static void show_syphon_license_internal(void)
|
|||
|
||||
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
|
||||
|
||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
|
||||
if (@available(macOS 11.0, *)) {
|
||||
NSURL *url = [NSURL
|
||||
URLWithString:
|
||||
[@"file://"
|
||||
stringByAppendingString:
|
||||
[NSString
|
||||
stringWithCString:path
|
||||
encoding:NSUTF8StringEncoding]]];
|
||||
[ws openURL:url];
|
||||
} else {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
[ws openFile:@(path)];
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
#else
|
||||
[ws openFile:@(path)];
|
||||
#endif
|
||||
NSURL *url = [NSURL
|
||||
URLWithString:
|
||||
[@"file://"
|
||||
stringByAppendingString:
|
||||
[NSString
|
||||
stringWithCString:path
|
||||
encoding:NSUTF8StringEncoding]]];
|
||||
[ws openURL:url];
|
||||
bfree(path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue