diff --git a/ui/drivers/ui_cocoa.m b/ui/drivers/ui_cocoa.m index f9a26bbd11..913f94f5db 100644 --- a/ui/drivers/ui_cocoa.m +++ b/ui/drivers/ui_cocoa.m @@ -387,7 +387,7 @@ static void open_document_handler(ui_browser_window_state_t *state, bool result) browser_state.filters = strdup("dylib"); browser_state.filters_title = strdup("Core"); browser_state.title = strdup("Load Core"); - browser_state.startdir = strdup(settings->directory.libretro); + browser_state.startdir = strdup(settings->paths.directory_libretro); bool result = browser->open(&browser_state); open_core_handler(&browser_state, result); @@ -407,7 +407,7 @@ static void open_document_handler(ui_browser_window_state_t *state, bool result) { ui_browser_window_state_t browser_state = {{0}}; settings_t *settings = config_get_ptr(); - NSString *startdir = BOXSTRING(settings->directory.menu_content); + NSString *startdir = BOXSTRING(settings->paths.directory_menu_content); if (!startdir.length) startdir = BOXSTRING("/"); @@ -430,7 +430,7 @@ static void open_document_handler(ui_browser_window_state_t *state, bool result) - (IBAction)showCoresDirectory:(id)sender { settings_t *settings = config_get_ptr(); - [[NSWorkspace sharedWorkspace] openFile:BOXSTRING(settings->directory.libretro)]; + [[NSWorkspace sharedWorkspace] openFile:BOXSTRING(settings->paths.directory_libretro)]; } - (IBAction)showPreferences:(id)sender diff --git a/ui/drivers/ui_win32.c b/ui/drivers/ui_win32.c index 8008ac9d50..13eb35d553 100644 --- a/ui/drivers/ui_win32.c +++ b/ui/drivers/ui_win32.c @@ -604,13 +604,13 @@ LRESULT win32_menu_loop(HWND owner, WPARAM wparam) case ID_M_LOAD_CORE: extensions = "Libretro core (.dll)\0*.dll\0All Files\0*.*\0\0"; title = msg_hash_to_str(MENU_ENUM_LABEL_VALUE_CORE_LIST); - initial_dir = settings->directory.libretro; + initial_dir = settings->paths.directory_libretro; break; case ID_M_LOAD_CONTENT: extensions = "All Files (*.*)\0*.*\0\0"; title = msg_hash_to_str( MENU_ENUM_LABEL_VALUE_LOAD_CONTENT_LIST); - initial_dir = settings->directory.menu_content; + initial_dir = settings->paths.directory_menu_content; break; }