Update core info when INFO_DIR changes.

This commit is contained in:
Themaister 2013-10-11 09:14:31 +02:00
parent f395fcf3db
commit b8fbc58e44
2 changed files with 10 additions and 0 deletions

View File

@ -577,7 +577,13 @@ int menu_set_settings(unsigned setting, unsigned action)
#endif
case RGUI_LIBRETRO_INFO_DIR_PATH:
if (action == RGUI_ACTION_START)
{
*g_settings.libretro_info_path = '\0';
core_info_list_free(rgui->core_info);
rgui->core_info = NULL;
if (*rgui->libretro_dir)
rgui->core_info = core_info_list_new(rgui->libretro_dir);
}
break;
case RGUI_CONFIG_DIR_PATH:
if (action == RGUI_ACTION_START)

View File

@ -1441,6 +1441,10 @@ static int rgui_iterate(void *data, unsigned action)
else if (menu_type == RGUI_LIBRETRO_INFO_DIR_PATH)
{
strlcpy(g_settings.libretro_info_path, dir, sizeof(g_settings.libretro_info_path));
core_info_list_free(rgui->core_info);
rgui->core_info = NULL;
if (*rgui->libretro_dir)
rgui->core_info = core_info_list_new(rgui->libretro_dir);
rgui_flush_menu_stack_type(rgui, RGUI_SETTINGS_PATH_OPTIONS);
}
else if (menu_type == RGUI_SHADER_DIR_PATH)