Merge pull request #1384 from lakkatv/xmb

(XMB) Display cursor and rdb icons
This commit is contained in:
Twinaphex 2015-02-03 00:53:35 +01:00
commit 8b551ccddf

View File

@ -66,6 +66,8 @@ enum
XMB_TEXTURE_FOLDER,
XMB_TEXTURE_ZIP,
XMB_TEXTURE_CORE,
XMB_TEXTURE_RDB,
XMB_TEXTURE_CURSOR,
XMB_TEXTURE_SWITCH_ON,
XMB_TEXTURE_SWITCH_OFF,
XMB_TEXTURE_LAST
@ -948,6 +950,12 @@ 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_FILE_RDB:
icon = xmb->textures[XMB_TEXTURE_RDB].id;
break;
case MENU_FILE_CURSOR:
icon = xmb->textures[XMB_TEXTURE_CURSOR].id;
break;
case MENU_SETTING_ACTION_RUN:
icon = xmb->textures[XMB_TEXTURE_RUN].id;
break;
@ -991,6 +999,8 @@ static void xmb_draw_items(file_list_t *list, file_list_t *stack,
if(( strcmp(type_str, "...")
&& strcmp(type_str, "(CORE)")
&& strcmp(type_str, "(RDB)")
&& strcmp(type_str, "(CURSOR)")
&& strcmp(type_str, "(FILE)")
&& strcmp(type_str, "(DIR)")
&& strcmp(type_str, "(COMP)")
@ -1388,6 +1398,10 @@ static void xmb_context_reset(void *data)
"zip.png", sizeof(xmb->textures[XMB_TEXTURE_ZIP].path));
fill_pathname_join(xmb->textures[XMB_TEXTURE_CORE].path, iconpath,
"core.png", sizeof(xmb->textures[XMB_TEXTURE_CORE].path));
fill_pathname_join(xmb->textures[XMB_TEXTURE_RDB].path, iconpath,
"database.png", sizeof(xmb->textures[XMB_TEXTURE_RDB].path));
fill_pathname_join(xmb->textures[XMB_TEXTURE_CURSOR].path, iconpath,
"cursor.png", sizeof(xmb->textures[XMB_TEXTURE_CURSOR].path));
fill_pathname_join(xmb->textures[XMB_TEXTURE_SWITCH_ON].path, iconpath,
"on.png", sizeof(xmb->textures[XMB_TEXTURE_SWITCH_ON].path));
fill_pathname_join(xmb->textures[XMB_TEXTURE_SWITCH_OFF].path, iconpath,