Add additions to file_path_str

This commit is contained in:
twinaphex 2016-06-27 07:47:15 +02:00
parent d6975325d9
commit 4ddeda2511
3 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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,

View File

@ -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;