(menu_entries_cbs_left.c/menu_entries_cbs_right.c) Get rid of hardcoded string compares

to xmb
This commit is contained in:
twinaphex 2015-06-07 15:54:36 +02:00
parent 387e1c1ed2
commit a43f86629c
2 changed files with 6 additions and 14 deletions

View File

@ -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;

View File

@ -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;