mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
DRIVER_DATA_GET calls nearly gone from menu_displaylist.c
This commit is contained in:
parent
b647f6e019
commit
3cf12dbbf8
@ -2475,13 +2475,13 @@ static void menu_displaylist_set_new_playlist(
|
|||||||
|
|
||||||
|
|
||||||
static int menu_displaylist_parse_horizontal_list(
|
static int menu_displaylist_parse_horizontal_list(
|
||||||
|
menu_handle_t *menu,
|
||||||
menu_displaylist_info_t *info)
|
menu_displaylist_info_t *info)
|
||||||
{
|
{
|
||||||
menu_ctx_list_t list_info;
|
menu_ctx_list_t list_info;
|
||||||
menu_ctx_list_t list_horiz_info;
|
menu_ctx_list_t list_horiz_info;
|
||||||
bool is_historylist = false;
|
bool is_historylist = false;
|
||||||
playlist_t *playlist = NULL;
|
playlist_t *playlist = NULL;
|
||||||
menu_handle_t *menu = NULL;
|
|
||||||
struct item_file *item = NULL;
|
struct item_file *item = NULL;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
@ -2497,9 +2497,6 @@ static int menu_displaylist_parse_horizontal_list(
|
|||||||
|
|
||||||
item = (struct item_file*)list_horiz_info.entry;
|
item = (struct item_file*)list_horiz_info.entry;
|
||||||
|
|
||||||
if (!menu_driver_ctl(RARCH_MENU_CTL_DRIVER_DATA_GET, &menu))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
if (!item)
|
if (!item)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -6334,7 +6331,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
|
|||||||
break;
|
break;
|
||||||
case DISPLAYLIST_HORIZONTAL:
|
case DISPLAYLIST_HORIZONTAL:
|
||||||
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
menu_entries_ctl(MENU_ENTRIES_CTL_CLEAR, info->list);
|
||||||
ret = menu_displaylist_parse_horizontal_list(info);
|
ret = menu_displaylist_parse_horizontal_list(menu, info);
|
||||||
|
|
||||||
info->need_sort = true;
|
info->need_sort = true;
|
||||||
info->need_refresh = true;
|
info->need_refresh = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user