mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Set dialogs to default dir
This commit is contained in:
parent
172b972a32
commit
b28771eadb
@ -293,6 +293,9 @@ extern void action_ok_push_quick_menu(void);
|
||||
- (IBAction)openCore:(id)sender {
|
||||
NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel];
|
||||
#if defined(MAC_OS_X_VERSION_10_6)
|
||||
settings_t *settings = config_get_ptr();
|
||||
NSString *startdir = BOXSTRING(settings->libretro_directory);
|
||||
[panel setDirectoryURL:[NSURL fileURLWithPath:startdir]];
|
||||
[panel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result)
|
||||
{
|
||||
[[NSApplication sharedApplication] stopModal];
|
||||
@ -336,6 +339,11 @@ extern void action_ok_push_quick_menu(void);
|
||||
{
|
||||
NSOpenPanel* panel = (NSOpenPanel*)[NSOpenPanel openPanel];
|
||||
#if defined(MAC_OS_X_VERSION_10_6)
|
||||
settings_t *settings = config_get_ptr();
|
||||
NSString *startdir = BOXSTRING(settings->menu_content_directory);
|
||||
if (!startdir.length)
|
||||
startdir = BOXSTRING("/");
|
||||
[panel setDirectoryURL:[NSURL fileURLWithPath:startdir]];
|
||||
[panel beginSheetModalForWindow:self.window completionHandler:^(NSInteger result)
|
||||
{
|
||||
[[NSApplication sharedApplication] stopModal];
|
||||
|
Loading…
x
Reference in New Issue
Block a user