diff --git a/file_path_special.c b/file_path_special.c index c6902bd622..966d7fa538 100644 --- a/file_path_special.c +++ b/file_path_special.c @@ -60,7 +60,7 @@ void fill_pathname_expand_special(char *out_path, retro_assert(src_size < size); out_path += src_size; - size -= src_size; + size -= src_size; in_path++; } } @@ -346,7 +346,9 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe char s1[PATH_MAX_LENGTH] = {0}; fill_pathname_application_special(s1, sizeof(s1), APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS); - fill_pathname_join(s, s1, "bg.png", len); + fill_pathname_join(s, s1, + file_path_str(FILE_PATH_BACKGROUND_IMAGE), + len); } } #endif @@ -415,7 +417,9 @@ void fill_pathname_application_special(char *s, size_t len, enum application_spe char s1[PATH_MAX_LENGTH] = {0}; fill_pathname_application_special(s1, sizeof(s1), APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB); - fill_pathname_join(s, s1, "font.ttf", len); + fill_pathname_join(s, s1, + file_path_str(FILE_PATH_TTF_FONT), + len); } } #endif diff --git a/file_path_special.h b/file_path_special.h index 3b528ba444..106c4c216c 100644 --- a/file_path_special.h +++ b/file_path_special.h @@ -26,6 +26,8 @@ enum file_path_enum { FILE_PATH_UNKNOWN = 0, FILE_PATH_CONTENT_HISTORY, + FILE_PATH_BACKGROUND_IMAGE, + FILE_PATH_TTF_FONT, FILE_PATH_MAIN_CONFIG, FILE_PATH_CORE_OPTIONS_CONFIG, FILE_PATH_ASSETS_ZIP, diff --git a/file_path_str.c b/file_path_str.c index e9fb2676a4..e2a1cbfd93 100644 --- a/file_path_str.c +++ b/file_path_str.c @@ -63,6 +63,10 @@ const char *file_path_str(enum file_path_enum enum_idx) return "retroarch-core-options.cfg"; case FILE_PATH_MAIN_CONFIG: return "retroarch.cfg"; + case FILE_PATH_BACKGROUND_IMAGE: + return "bg.png"; + case FILE_PATH_TTF_FONT: + return "font.ttf"; case FILE_PATH_UNKNOWN: default: break;