early-access version 2281

This commit is contained in:
pineappleEA
2021-12-07 02:20:09 +01:00
parent c2ae6d480a
commit c4fa174d53
591 changed files with 36978 additions and 18653 deletions
+4 -4
View File
@@ -27,10 +27,10 @@ int
SDL_SYS_OpenURL(const char *url)
{ @autoreleasepool
{
NSString *nsstr = [NSString stringWithUTF8String:url];
NSURL *nsurl = [NSURL URLWithString:nsstr];
return [[NSWorkspace sharedWorkspace] openURL:nsurl] ? 0 : -1;
CFURLRef cfurl = CFURLCreateWithBytes(NULL, (const UInt8 *) url, SDL_strlen(url), kCFStringEncodingUTF8, NULL);
OSStatus status = LSOpenCFURLRef(cfurl, NULL);
CFRelease(cfurl);
return status == noErr ? 0 : -1;
}}
/* vi: set ts=4 sw=4 expandtab: */