(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

@ -143,16 +143,11 @@ static int action_left_mainmenu(unsigned type, const char *label,
return -1; return -1;
if (list_size == 1) if (list_size == 1)
{
if (!strcmp(driver->menu_ctx->ident, "xmb"))
{ {
menu->navigation.selection_ptr = 0; menu->navigation.selection_ptr = 0;
if (menu->categories.selection_ptr != 0) if (menu->categories.selection_ptr != 0)
{
push_list = 1; push_list = 1;
} }
}
}
else else
push_list = 2; push_list = 2;

View File

@ -151,14 +151,11 @@ static int action_right_mainmenu(unsigned type, const char *label,
return -1; return -1;
if (list_size == 1) if (list_size == 1)
{
if (!strcmp(driver->menu_ctx->ident, "xmb"))
{ {
menu->navigation.selection_ptr = 0; menu->navigation.selection_ptr = 0;
if (menu->categories.selection_ptr != (menu->categories.size - 1)) if (menu->categories.selection_ptr != (menu->categories.size - 1))
push_list = 1; push_list = 1;
} }
}
else else
push_list = 2; push_list = 2;