mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Cleanups
This commit is contained in:
parent
260f2f713c
commit
61c4a00a59
@ -370,11 +370,13 @@ bool generic_menu_init_list(void *data)
|
|||||||
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr();
|
file_list_t *menu_stack = menu_entries_get_menu_stack_ptr();
|
||||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr();
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr();
|
||||||
|
|
||||||
info.list = selection_buf;
|
|
||||||
strlcpy(info.label, menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(info.label));
|
strlcpy(info.label, menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(info.label));
|
||||||
|
|
||||||
menu_entries_push(menu_stack, info.path, info.label, info.type, info.flags, 0);
|
menu_entries_push(menu_stack, info.path, info.label, info.type, info.flags, 0);
|
||||||
|
|
||||||
|
info.list = selection_buf;
|
||||||
menu_displaylist_push_list(&info, DISPLAYLIST_MAIN_MENU);
|
menu_displaylist_push_list(&info, DISPLAYLIST_MAIN_MENU);
|
||||||
|
|
||||||
menu_displaylist_push_list_process(&info);
|
menu_displaylist_push_list_process(&info);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -2598,12 +2598,13 @@ static bool xmb_menu_init_list(void *data)
|
|||||||
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr();
|
file_list_t *selection_buf = menu_entries_get_selection_buf_ptr();
|
||||||
menu_handle_t *menu = (menu_handle_t*)data;
|
menu_handle_t *menu = (menu_handle_t*)data;
|
||||||
|
|
||||||
info.list = selection_buf;
|
|
||||||
strlcpy(info.label, menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(info.label));
|
strlcpy(info.label, menu_hash_to_str(MENU_VALUE_MAIN_MENU), sizeof(info.label));
|
||||||
|
|
||||||
menu_entries_push(menu_stack, info.path, info.label, info.type, info.flags, 0);
|
menu_entries_push(menu_stack, info.path, info.label, info.type, info.flags, 0);
|
||||||
|
|
||||||
|
info.list = selection_buf;
|
||||||
menu_displaylist_push_list(&info, DISPLAYLIST_MAIN_MENU);
|
menu_displaylist_push_list(&info, DISPLAYLIST_MAIN_MENU);
|
||||||
|
|
||||||
info.need_push = true;
|
info.need_push = true;
|
||||||
|
|
||||||
(void)ret;
|
(void)ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user