mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
(OSX) Fix build
This commit is contained in:
parent
11cc280239
commit
829656391a
@ -357,7 +357,7 @@ static void open_document_handler(NSOpenPanel *panel, NSInteger result)
|
||||
#endif
|
||||
NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel];
|
||||
settings_t *settings = config_get_ptr();
|
||||
NSString *startdir = BOXSTRING(settings->libretro_directory);
|
||||
NSString *startdir = BOXSTRING(settings->directory.libretro);
|
||||
NSArray *filetypes = [[NSArray alloc] initWithObjects:BOXSTRING("dylib"), BOXSTRING("Core"), nil];
|
||||
[panel setAllowedFileTypes:filetypes];
|
||||
#if defined(MAC_OS_X_VERSION_10_6)
|
||||
@ -392,7 +392,7 @@ static void open_document_handler(NSOpenPanel *panel, NSInteger result)
|
||||
#endif
|
||||
NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel];
|
||||
settings_t *settings = config_get_ptr();
|
||||
NSString *startdir = BOXSTRING(settings->menu_content_directory);
|
||||
NSString *startdir = BOXSTRING(settings->directory.menu_content);
|
||||
|
||||
if (!startdir.length)
|
||||
startdir = BOXSTRING("/");
|
||||
@ -428,7 +428,7 @@ static void open_document_handler(NSOpenPanel *panel, NSInteger result)
|
||||
- (IBAction)showCoresDirectory:(id)sender
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
[[NSWorkspace sharedWorkspace] openFile:BOXSTRING(settings->libretro_directory)];
|
||||
[[NSWorkspace sharedWorkspace] openFile:BOXSTRING(settings->directory.libretro)];
|
||||
}
|
||||
|
||||
- (IBAction)showPreferences:(id)sender
|
||||
|
Loading…
Reference in New Issue
Block a user