(XMB) Better test to know when to apply path_basename on the node name

This commit is contained in:
Jean-André Santoni 2015-01-28 22:06:42 +01:00
parent 6658a18baf
commit 2e8154a7dd

View File

@ -886,7 +886,7 @@ static void xmb_draw_items(file_list_t *list, file_list_t *stack,
entry_label, path,
path_buf, sizeof(path_buf));
if (xmb->active_category && xmb->depth == 1)
if (type == MENU_FILE_CONTENTLIST_ENTRY)
strlcpy(path_buf, path_basename(path_buf), sizeof(path_buf));
GLuint icon = 0;