mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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_list_t *menu_list = menu_list_get_ptr();
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
unsigned action = MENU_ACTION_LEFT;
|
unsigned action = MENU_ACTION_LEFT;
|
||||||
|
size_t list_size = menu_driver_list_get_size(MENU_LIST_PLAIN);
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (file_list_get_size(menu_list->menu_stack) == 1)
|
if (list_size == 1)
|
||||||
{
|
{
|
||||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
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_list_t *menu_list = menu_list_get_ptr();
|
||||||
menu_handle_t *menu = menu_driver_get_ptr();
|
menu_handle_t *menu = menu_driver_get_ptr();
|
||||||
unsigned action = MENU_ACTION_RIGHT;
|
unsigned action = MENU_ACTION_RIGHT;
|
||||||
|
size_t list_size = menu_driver_list_get_size(MENU_LIST_PLAIN);
|
||||||
if (!menu)
|
if (!menu)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (file_list_get_size(menu_list->menu_stack) == 1)
|
if (list_size == 1)
|
||||||
{
|
{
|
||||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user