diff --git a/file_path_special.c b/file_path_special.c index e087324e3e..ab4c0c0eea 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -34,6 +34,7 @@ #endif #include +#include #include #include @@ -288,7 +289,7 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe { settings_t *settings = config_get_ptr(); - if (*settings->path.menu_wallpaper) + if (!string_is_empty(settings->path.menu_wallpaper)) strlcpy(s, settings->path.menu_wallpaper, len); else { @@ -356,10 +357,15 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe #ifdef HAVE_XMB { char s1[PATH_MAX_LENGTH] = {0}; + settings_t *settings = config_get_ptr(); fill_pathname_application_special(s1, sizeof(s1), APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB); - fill_pathname_join(s, s1, "font.ttf", len); + + if (!string_is_empty(settings->menu.xmb_font)) + strlcpy(s, settings->menu.xmb_font, len); + else + fill_pathname_join(s, s1, "font.ttf", len); } #endif break; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 9ad15a6dbb..b97123821d 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -2266,9 +2266,6 @@ static void xmb_font(xmb_handle_t *xmb) fill_pathname_application_special(fontpath, sizeof(fontpath), APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_FONT); - if (!string_is_empty(settings->menu.xmb_font)) - strlcpy(fontpath, settings->menu.xmb_font,sizeof(fontpath)); - font_info.path = fontpath; font_info.size = font_size;