mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Cut down on HAVE_COCOA_METAL/HAVE_COCOA ifdef
This commit is contained in:
parent
ee77cd7288
commit
b0b81406ad
@ -158,15 +158,8 @@ static bool ui_browser_window_cocoa_open(ui_browser_window_state_t *state)
|
||||
panel.allowsMultipleSelection = NO;
|
||||
panel.treatsFilePackagesAsDirectories = NO;
|
||||
|
||||
#if defined(HAVE_COCOA_METAL)
|
||||
NSModalResponse result = [panel runModal];
|
||||
if (result != NSModalResponseOK)
|
||||
if ([panel runModal] != 1)
|
||||
return false;
|
||||
#elif defined(HAVE_COCOA)
|
||||
NSInteger result = [panel runModal];
|
||||
if (result != 1)
|
||||
return false;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
NSURL *url = (NSURL*)panel.URL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user