mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(menu_entries_cbs_left.c/menu_entries_cbs_right.c) Get rid of hardcoded string compares
to xmb
This commit is contained in:
parent
387e1c1ed2
commit
a43f86629c
@ -144,14 +144,9 @@ static int action_left_mainmenu(unsigned type, const char *label,
|
||||
|
||||
if (list_size == 1)
|
||||
{
|
||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
||||
{
|
||||
menu->navigation.selection_ptr = 0;
|
||||
if (menu->categories.selection_ptr != 0)
|
||||
{
|
||||
push_list = 1;
|
||||
}
|
||||
}
|
||||
menu->navigation.selection_ptr = 0;
|
||||
if (menu->categories.selection_ptr != 0)
|
||||
push_list = 1;
|
||||
}
|
||||
else
|
||||
push_list = 2;
|
||||
|
@ -152,12 +152,9 @@ static int action_right_mainmenu(unsigned type, const char *label,
|
||||
|
||||
if (list_size == 1)
|
||||
{
|
||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
||||
{
|
||||
menu->navigation.selection_ptr = 0;
|
||||
if (menu->categories.selection_ptr != (menu->categories.size - 1))
|
||||
push_list = 1;
|
||||
}
|
||||
menu->navigation.selection_ptr = 0;
|
||||
if (menu->categories.selection_ptr != (menu->categories.size - 1))
|
||||
push_list = 1;
|
||||
}
|
||||
else
|
||||
push_list = 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user