(XMB) Should now look for dynamic wallpapers without the 'lbl' extension

This commit is contained in:
twinaphex 2015-06-11 15:57:22 +02:00
parent f978a3088c
commit 500909cf9f

View File

@ -727,12 +727,11 @@ static void xmb_list_switch_new(xmb_handle_t *xmb,
if (settings->menu.dynamic_wallpaper_enable) if (settings->menu.dynamic_wallpaper_enable)
{ {
char path[PATH_MAX_LENGTH]; char path[PATH_MAX_LENGTH];
char *tmp = string_replace_substring(xmb->title_name, "/", " "); char *tmp = string_replace_substring(xmb->title_name, "/", " ");
if (tmp) if (tmp)
{ {
fill_pathname_join(path, settings->dynamic_wallpapers_directory, tmp, sizeof(path)); fill_pathname_noext(path, settings->dynamic_wallpapers_directory, tmp, sizeof(path));
free(tmp); free(tmp);
} }