mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Refactor away menu_list_populate_generic
This commit is contained in:
parent
c95fd28e59
commit
9820b39653
@ -2071,7 +2071,9 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
|
||||
driver_t *driver = driver_get_ptr();
|
||||
const ui_companion_driver_t *ui = ui_companion_get_ptr();
|
||||
|
||||
menu_list_populate_generic(info, need_refresh);
|
||||
if (need_refresh)
|
||||
menu_list_refresh(info->list);
|
||||
menu_driver_populate_entries(info->path, info->label, info->type);
|
||||
|
||||
if (ui && driver)
|
||||
ui->notify_list_loaded(driver->ui_companion_data,
|
||||
|
@ -367,12 +367,3 @@ void menu_list_get_alt_at_offset(const file_list_t *list, size_t idx,
|
||||
{
|
||||
file_list_get_alt_at_offset(list, idx, alt);
|
||||
}
|
||||
|
||||
int menu_list_populate_generic(menu_displaylist_info_t *info, bool need_refresh)
|
||||
{
|
||||
if (need_refresh)
|
||||
menu_list_refresh(info->list);
|
||||
menu_driver_populate_entries(info->path, info->label, info->type);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -107,9 +107,6 @@ void menu_list_set_alt_at_offset(file_list_t *list, size_t idx,
|
||||
|
||||
void menu_list_refresh(file_list_t *list);
|
||||
|
||||
int menu_list_populate_generic(menu_displaylist_info_t *info,
|
||||
bool need_refresh);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user