(XMB) Display appropriate icons for actions

This commit is contained in:
Jean-André Santoni 2014-11-25 11:37:39 +07:00
parent c0d80a4e25
commit eeee8e74a4
2 changed files with 21 additions and 1 deletions

View File

@ -819,6 +819,21 @@ static void xmb_draw_items(file_list_t *list, file_list_t *stack,
case MENU_FILE_CORE:
icon = xmb->textures[XMB_TEXTURE_CORE].id;
break;
case MENU_SETTING_ACTION_RUN:
icon = xmb->textures[XMB_TEXTURE_RUN].id;
break;
case MENU_SETTING_ACTION_SAVESTATE:
icon = xmb->textures[XMB_TEXTURE_SAVESTATE].id;
break;
case MENU_SETTING_ACTION_LOADSTATE:
icon = xmb->textures[XMB_TEXTURE_LOADSTATE].id;
break;
case MENU_SETTING_ACTION_SCREENSHOT:
icon = xmb->textures[XMB_TEXTURE_SCREENSHOT].id;
break;
case MENU_SETTING_ACTION_RESET:
icon = xmb->textures[XMB_TEXTURE_RELOAD].id;
break;
default:
icon = xmb->textures[XMB_TEXTURE_SETTING].id;
break;

View File

@ -218,7 +218,12 @@ int entries_push_horizontal_menu_list(menu_handle_t *menu,
if (!info->supports_no_game)
content_list_push(list, info, g_settings.content_directory);
else
menu_list_push(list, info->display_name, "", MENU_FILE_CONTENTLIST_ENTRY, 0);
menu_list_push(
list,
info->display_name,
"content_actions",
MENU_FILE_CONTENTLIST_ENTRY,
0);
driver.menu->scroll_indices_size = 0;
menu_entries_build_scroll_indices(list);