mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 01:21:03 +00:00
(Menu) Refactor code to use menu_flush_stack_type
This commit is contained in:
parent
41d5db6727
commit
97c0ca344c
@ -446,16 +446,7 @@ bool menu_iterate(void)
|
||||
ret = driver.menu_ctx->input_postprocess(driver.menu->old_input_state);
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
unsigned type = 0;
|
||||
file_list_get_last(driver.menu->menu_stack, &path, &label, &type);
|
||||
|
||||
while (type != MENU_SETTINGS)
|
||||
{
|
||||
file_list_pop(driver.menu->menu_stack, &driver.menu->selection_ptr);
|
||||
file_list_get_last(driver.menu->menu_stack, &path, &label, &type);
|
||||
}
|
||||
}
|
||||
menu_flush_stack_type(driver.menu->menu_stack, MENU_SETTINGS);
|
||||
|
||||
if (ret || input_entry_ret)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user