(XMB) Cleanups

This commit is contained in:
twinaphex 2015-10-19 17:35:47 +02:00
parent 2d8abce80f
commit b3dc51072c

View File

@ -2425,19 +2425,20 @@ static void xmb_list_cache(menu_list_type_t type, unsigned action)
free(menu_stack->list[stack_size - 1].label); free(menu_stack->list[stack_size - 1].label);
menu_stack->list[stack_size - 1].label = NULL; menu_stack->list[stack_size - 1].label = NULL;
if (xmb->categories.selection_ptr == 0) switch (xmb->categories.selection_ptr)
{ {
menu_stack->list[stack_size - 1].label = case 0:
strdup(menu_hash_to_str(MENU_VALUE_MAIN_MENU)); menu_stack->list[stack_size - 1].label =
menu_stack->list[stack_size - 1].type = strdup(menu_hash_to_str(MENU_VALUE_MAIN_MENU));
MENU_SETTINGS; menu_stack->list[stack_size - 1].type =
} MENU_SETTINGS;
else break;
{ default:
menu_stack->list[stack_size - 1].label = menu_stack->list[stack_size - 1].label =
strdup(menu_hash_to_str(MENU_VALUE_HORIZONTAL_MENU)); strdup(menu_hash_to_str(MENU_VALUE_HORIZONTAL_MENU));
menu_stack->list[stack_size - 1].type = menu_stack->list[stack_size - 1].type =
MENU_SETTING_HORIZONTAL_MENU; MENU_SETTING_HORIZONTAL_MENU;
break;
} }
break; break;
} }