mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-06 11:38:23 +00:00
Display thumbnails for Load Content->Collections
This commit is contained in:
parent
aeddb18e31
commit
80f06b9574
@ -1162,7 +1162,8 @@ static void xmb_selection_pointer_changed(
|
||||
if (!string_is_equal(xmb_thumbnails_ident(),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)))
|
||||
{
|
||||
if (xmb_list > XMB_SYSTEM_TAB_SETTINGS && depth == 1)
|
||||
if ((xmb_list > XMB_SYSTEM_TAB_SETTINGS && depth == 1) ||
|
||||
(xmb_list < XMB_SYSTEM_TAB_SETTINGS && depth == 4))
|
||||
{
|
||||
xmb_set_thumbnail_content(xmb, e.path, sizeof(e.path));
|
||||
xmb_update_thumbnail_path(xmb, i);
|
||||
|
@ -1546,6 +1546,7 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
{
|
||||
unsigned i;
|
||||
size_t list_size = 0;
|
||||
size_t selection = menu_navigation_get_selection();
|
||||
|
||||
if (!playlist)
|
||||
return -1;
|
||||
@ -1562,6 +1563,14 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!string_is_empty(info->path))
|
||||
{
|
||||
char lpl_basename[PATH_MAX_LENGTH];
|
||||
lpl_basename[0] = '\0';
|
||||
fill_pathname_base_noext(lpl_basename, info->path, sizeof(lpl_basename));
|
||||
menu_driver_set_thumbnail_system(lpl_basename, sizeof(lpl_basename));
|
||||
}
|
||||
|
||||
for (i = 0; i < list_size; i++)
|
||||
{
|
||||
char fill_buf[PATH_MAX_LENGTH];
|
||||
@ -1582,6 +1591,15 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
if (core_name)
|
||||
strlcpy(fill_buf, core_name, sizeof(fill_buf));
|
||||
|
||||
if (!is_history && i == selection)
|
||||
{
|
||||
char content_basename[PATH_MAX_LENGTH];
|
||||
strlcpy(content_basename, label, sizeof(content_basename));
|
||||
menu_driver_set_thumbnail_content(content_basename, PATH_MAX_LENGTH);
|
||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_PATH, NULL);
|
||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_IMAGE, NULL);
|
||||
}
|
||||
|
||||
if (path)
|
||||
{
|
||||
char path_short[PATH_MAX_LENGTH];
|
||||
|
Loading…
x
Reference in New Issue
Block a user