(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 (list_size == 1)
|
||||||
{
|
{
|
||||||
if (!strcmp(driver->menu_ctx->ident, "xmb"))
|
menu->navigation.selection_ptr = 0;
|
||||||
{
|
if (menu->categories.selection_ptr != 0)
|
||||||
menu->navigation.selection_ptr = 0;
|
push_list = 1;
|
||||||
if (menu->categories.selection_ptr != 0)
|
|
||||||
{
|
|
||||||
push_list = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
push_list = 2;
|
push_list = 2;
|
||||||
|
|
|
@ -152,12 +152,9 @@ static int action_right_mainmenu(unsigned type, const char *label,
|
||||||
|
|
||||||
if (list_size == 1)
|
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))
|
||||||
menu->navigation.selection_ptr = 0;
|
push_list = 1;
|
||||||
if (menu->categories.selection_ptr != (menu->categories.size - 1))
|
|
||||||
push_list = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
push_list = 2;
|
push_list = 2;
|
||||||
|
|
Loading…
Reference in New Issue