mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
Cleanups
This commit is contained in:
parent
9cdea532ce
commit
6bb5af8ee0
@ -1540,13 +1540,17 @@ static int menu_displaylist_parse_playlist(menu_displaylist_info_t *info,
|
||||
if (core_name)
|
||||
strlcpy(fill_buf, core_name, path_size);
|
||||
|
||||
if (!is_history && i == selection)
|
||||
if (!is_history && i == selection && !string_is_empty(label))
|
||||
{
|
||||
char *content_basename = strdup(label);
|
||||
menu_driver_set_thumbnail_content(content_basename, strlen(content_basename) + 1);
|
||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_PATH, NULL);
|
||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_IMAGE, NULL);
|
||||
free(content_basename);
|
||||
|
||||
if (!string_is_empty(content_basename))
|
||||
{
|
||||
menu_driver_set_thumbnail_content(content_basename, strlen(content_basename) + 1);
|
||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_PATH, NULL);
|
||||
menu_driver_ctl(RARCH_MENU_CTL_UPDATE_THUMBNAIL_IMAGE, NULL);
|
||||
free(content_basename);
|
||||
}
|
||||
}
|
||||
|
||||
if (path)
|
||||
|
Loading…
Reference in New Issue
Block a user