mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(menu_displaylist.c) Cleanups
This commit is contained in:
parent
258b335130
commit
a75c3b6154
@ -173,7 +173,6 @@ static int menu_displaylist_parse(
|
||||
if (!*dir)
|
||||
{
|
||||
menu_displaylist_parse_drive_list(list);
|
||||
menu_driver_populate_entries(dir, label, type);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -306,7 +305,7 @@ static int menu_displaylist_parse(
|
||||
menu_list_sort_on_alt(list);
|
||||
}
|
||||
|
||||
menu_list_populate_generic(list, dir, label, type);
|
||||
menu_list_refresh(list);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -498,6 +497,8 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
ret = menu_displaylist_parse(info->list, info->menu_list,
|
||||
info->path, info->label, info->type,
|
||||
info->type_default, info->exts, info->setting);
|
||||
if (ret == 0)
|
||||
menu_driver_populate_entries(info->path, info->label, info->type);
|
||||
break;
|
||||
case DISPLAYLIST_DATABASE_QUERY:
|
||||
menu_list_clear(info->list);
|
||||
|
@ -124,7 +124,7 @@ static void menu_list_build_scroll_indices(file_list_t *list)
|
||||
*
|
||||
* Ensure it doesn't overflow.
|
||||
**/
|
||||
static void menu_list_refresh(file_list_t *list)
|
||||
void menu_list_refresh(file_list_t *list)
|
||||
{
|
||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
|
@ -86,6 +86,8 @@ void menu_list_get_alt_at_offset(const file_list_t *list, size_t idx,
|
||||
void menu_list_set_alt_at_offset(file_list_t *list, size_t idx,
|
||||
const char *alt);
|
||||
|
||||
void menu_list_refresh(file_list_t *list);
|
||||
|
||||
int menu_list_populate_generic(file_list_t *list,
|
||||
const char *path, const char *label, unsigned type);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user