mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Cleanup code in menu_common_backend.c
This commit is contained in:
parent
f2ad282ee0
commit
0d03bf04d2
@ -641,26 +641,6 @@ static int menu_common_iterate(unsigned action)
|
||||
case MENU_ACTION_RIGHT:
|
||||
if (cbs && cbs->action_toggle)
|
||||
ret = cbs->action_toggle(type_offset, label_offset, action);
|
||||
else if (file_list_get_size(driver.menu->menu_list->menu_stack) == 1
|
||||
&& !strcmp(driver.menu_ctx->ident, "xmb"))
|
||||
{
|
||||
if ((action == MENU_ACTION_LEFT && driver.menu->cat_selection_ptr == 0)
|
||||
|| (action == MENU_ACTION_RIGHT && driver.menu->cat_selection_ptr == g_extern.core_info->count))
|
||||
break;
|
||||
file_list_copy(driver.menu->menu_list->selection_buf, driver.menu->menu_list->selection_buf_old);
|
||||
file_list_copy(driver.menu->menu_list->menu_stack, driver.menu->menu_list->menu_stack_old);
|
||||
driver.menu->selection_ptr_old = driver.menu->selection_ptr;
|
||||
driver.menu->cat_selection_ptr_old = driver.menu->cat_selection_ptr;
|
||||
driver.menu->cat_selection_ptr += action == MENU_ACTION_LEFT ? -1 : 1;
|
||||
driver.menu->selection_ptr = 0;
|
||||
if (cbs && cbs->action_content_list_switch)
|
||||
return cbs->action_content_list_switch(
|
||||
driver.menu->menu_list->selection_buf,
|
||||
driver.menu->menu_list->menu_stack,
|
||||
"",
|
||||
"",
|
||||
0);
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (action)
|
||||
|
Loading…
x
Reference in New Issue
Block a user