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];
|
NSWorkspace *ws = [NSWorkspace sharedWorkspace];
|
||||||
|
|
||||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 110000
|
NSURL *url = [NSURL
|
||||||
if (@available(macOS 11.0, *)) {
|
URLWithString:
|
||||||
NSURL *url = [NSURL
|
[@"file://"
|
||||||
URLWithString:
|
stringByAppendingString:
|
||||||
[@"file://"
|
[NSString
|
||||||
stringByAppendingString:
|
stringWithCString:path
|
||||||
[NSString
|
encoding:NSUTF8StringEncoding]]];
|
||||||
stringWithCString:path
|
[ws openURL:url];
|
||||||
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
|
|
||||||
bfree(path);
|
bfree(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue