mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Start refactoring action_left_mainmenu/action_right_mainmenu
This commit is contained in:
parent
ce79c4a4a0
commit
387e1c1ed2
@ -138,10 +138,11 @@ static int action_left_mainmenu(unsigned type, const char *label,
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
unsigned action = MENU_ACTION_LEFT;
|
||||
size_t list_size = menu_driver_list_get_size(MENU_LIST_PLAIN);
|
||||
if (!menu)
|
||||
return -1;
|
||||
|
||||
if (file_list_get_size(menu_list->menu_stack) == 1)
|
||||
if (list_size == 1)
|
||||
{
|
||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
||||
{
|
||||
|
@ -146,10 +146,11 @@ static int action_right_mainmenu(unsigned type, const char *label,
|
||||
menu_list_t *menu_list = menu_list_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
unsigned action = MENU_ACTION_RIGHT;
|
||||
size_t list_size = menu_driver_list_get_size(MENU_LIST_PLAIN);
|
||||
if (!menu)
|
||||
return -1;
|
||||
|
||||
if (file_list_get_size(menu_list->menu_stack) == 1)
|
||||
if (list_size == 1)
|
||||
{
|
||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user