(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
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue