Buildfixes

This commit is contained in:
twinaphex 2017-04-29 02:00:50 +02:00
parent 8ab4f5a0b2
commit 9fdcd926ad
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;
}