Use config_get_active_core_path_size

This commit is contained in:
twinaphex 2016-07-26 14:32:18 +02:00
parent 628367d201
commit e9b3b9c30b
3 changed files with 4 additions and 3 deletions

View File

@ -332,7 +332,8 @@ static void load_dynamic_core(void)
/* Need to use absolute path for this setting. It can be
* saved to content history, and a relative path would
* break in that scenario. */
path_resolve_realpath(settings->path.libretro, sizeof(settings->path.libretro));
path_resolve_realpath(settings->path.libretro,
config_get_active_core_path_size());
RARCH_LOG("Loading dynamic libretro core from: \"%s\"\n",
config_get_active_core_path());

View File

@ -58,7 +58,7 @@ void main_exit(void *args)
frontend_driver_deinit(args);
frontend_driver_exitspawn(settings->path.libretro,
sizeof(settings->path.libretro));
config_get_active_core_path_size());
rarch_ctl(RARCH_CTL_DESTROY, NULL);

View File

@ -4023,7 +4023,7 @@ static bool setting_append_list(
&group_info,
&subgroup_info,
parent_group);
(*list)[list_info->index - 1].size = sizeof(settings->path.libretro);
(*list)[list_info->index - 1].size = config_get_active_core_path_size();
(*list)[list_info->index - 1].value.target.string = settings->path.libretro;
(*list)[list_info->index - 1].values = ext_name;
menu_settings_list_current_add_cmd(list, list_info, CMD_EVENT_LOAD_CORE);