mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Update core info when INFO_DIR changes.
This commit is contained in:
parent
f395fcf3db
commit
b8fbc58e44
@ -577,7 +577,13 @@ int menu_set_settings(unsigned setting, unsigned action)
|
|||||||
#endif
|
#endif
|
||||||
case RGUI_LIBRETRO_INFO_DIR_PATH:
|
case RGUI_LIBRETRO_INFO_DIR_PATH:
|
||||||
if (action == RGUI_ACTION_START)
|
if (action == RGUI_ACTION_START)
|
||||||
|
{
|
||||||
*g_settings.libretro_info_path = '\0';
|
*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;
|
break;
|
||||||
case RGUI_CONFIG_DIR_PATH:
|
case RGUI_CONFIG_DIR_PATH:
|
||||||
if (action == RGUI_ACTION_START)
|
if (action == RGUI_ACTION_START)
|
||||||
|
@ -1441,6 +1441,10 @@ static int rgui_iterate(void *data, unsigned action)
|
|||||||
else if (menu_type == RGUI_LIBRETRO_INFO_DIR_PATH)
|
else if (menu_type == RGUI_LIBRETRO_INFO_DIR_PATH)
|
||||||
{
|
{
|
||||||
strlcpy(g_settings.libretro_info_path, dir, sizeof(g_settings.libretro_info_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);
|
rgui_flush_menu_stack_type(rgui, RGUI_SETTINGS_PATH_OPTIONS);
|
||||||
}
|
}
|
||||||
else if (menu_type == RGUI_SHADER_DIR_PATH)
|
else if (menu_type == RGUI_SHADER_DIR_PATH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user