mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(XMB) Prevent horizontal navigation out of bounds
This commit is contained in:
parent
9c2617bcf8
commit
9edb44834a
@ -616,7 +616,8 @@ static int menu_common_iterate(unsigned action)
|
|||||||
case MENU_ACTION_RIGHT:
|
case MENU_ACTION_RIGHT:
|
||||||
if (file_list_get_size(driver.menu->menu_list->menu_stack) == 1 && !strcmp(driver.menu_ctx->ident, "xmb"))
|
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)
|
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;
|
break;
|
||||||
file_list_copy(driver.menu->menu_list->selection_buf, driver.menu->menu_list->selection_buf_old);
|
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);
|
file_list_copy(driver.menu->menu_list->menu_stack, driver.menu->menu_list->menu_stack_old);
|
||||||
|
Loading…
Reference in New Issue
Block a user