This commit is contained in:
twinaphex 2015-10-22 03:02:03 +02:00
parent 260f2f713c
commit 61c4a00a59
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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;