mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
(menu_list.c) Update
This commit is contained in:
parent
40c6ec3790
commit
62649c01f7
@ -150,7 +150,6 @@ void menu_list_flush_stack(menu_list_t *list,
|
||||
const char *label = NULL;
|
||||
unsigned type = 0;
|
||||
size_t entry_idx = 0;
|
||||
menu_navigation_t *nav = menu_navigation_get_ptr();
|
||||
if (!list)
|
||||
return;
|
||||
|
||||
@ -161,7 +160,12 @@ void menu_list_flush_stack(menu_list_t *list,
|
||||
while (menu_list_flush_stack_type(
|
||||
needle, label, type, final_type) != 0)
|
||||
{
|
||||
menu_list_pop(list->menu_stack, &nav->selection_ptr);
|
||||
size_t new_selection_ptr;
|
||||
|
||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &new_selection_ptr);
|
||||
menu_list_pop(list->menu_stack, &new_selection_ptr);
|
||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &new_selection_ptr);
|
||||
|
||||
menu_list_get_last(list->menu_stack,
|
||||
&path, &label, &type, &entry_idx);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user