From 4f53bd4ca0c4b2accf549ed0565665fec5b632ff Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 13 Jan 2013 16:31:05 +0100 Subject: [PATCH] (RARCH_CONSOLE) Change config_get_string to config_get_path --- settings.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/settings.c b/settings.c index c2d82c8600..4de45639d9 100644 --- a/settings.c +++ b/settings.c @@ -480,10 +480,8 @@ bool config_load_file(const char *path) bool state_dir_enable = false; int zip_extract_mode = 0; - char *has_set_path = NULL; - - if (config_get_string(conf, "default_rom_startup_dir", &has_set_path)) - strlcpy(g_extern.console.main_wrap.default_rom_startup_dir, has_set_path, sizeof(g_extern.console.main_wrap.default_rom_startup_dir)); + if (config_get_path(conf, "default_rom_startup_dir", tmp_str, sizeof(tmp_str))) + strlcpy(g_extern.console.main_wrap.default_rom_startup_dir, tmp_str, sizeof(g_extern.console.main_wrap.default_rom_startup_dir)); if (config_get_bool(conf, "info_msg_enable", &msg_enable)) {