mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Create fill_pathname_join_concat
This commit is contained in:
parent
eafce41a16
commit
c38c28a0f5
@ -587,6 +587,15 @@ void fill_pathname_join(char *out_path,
|
|||||||
retro_assert(strlcat(out_path, path, size) < size);
|
retro_assert(strlcat(out_path, path, size) < size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void fill_pathname_join_concat(char *out_path,
|
||||||
|
const char *dir, const char *path,
|
||||||
|
const char *concat,
|
||||||
|
size_t size)
|
||||||
|
{
|
||||||
|
fill_pathname_join(out_path, dir, path, size);
|
||||||
|
strlcat(out_path, concat, size);
|
||||||
|
}
|
||||||
|
|
||||||
void fill_pathname_join_noext(char *out_path,
|
void fill_pathname_join_noext(char *out_path,
|
||||||
const char *dir, const char *path, size_t size)
|
const char *dir, const char *path, size_t size)
|
||||||
{
|
{
|
||||||
|
@ -310,6 +310,11 @@ void fill_pathname_resolve_relative(char *out_path, const char *in_refpath,
|
|||||||
void fill_pathname_join(char *out_path, const char *dir,
|
void fill_pathname_join(char *out_path, const char *dir,
|
||||||
const char *path, size_t size);
|
const char *path, size_t size);
|
||||||
|
|
||||||
|
void fill_pathname_join_concat(char *out_path,
|
||||||
|
const char *dir, const char *path,
|
||||||
|
const char *concat,
|
||||||
|
size_t size);
|
||||||
|
|
||||||
void fill_pathname_join_noext(char *out_path,
|
void fill_pathname_join_noext(char *out_path,
|
||||||
const char *dir, const char *path, size_t size);
|
const char *dir, const char *path, size_t size);
|
||||||
|
|
||||||
|
@ -1359,13 +1359,13 @@ static void xmb_context_reset_horizontal_list(
|
|||||||
fill_pathname_application_special(iconpath, sizeof(iconpath),
|
fill_pathname_application_special(iconpath, sizeof(iconpath),
|
||||||
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS);
|
APPLICATION_SPECIAL_DIRECTORY_ASSETS_XMB_ICONS);
|
||||||
|
|
||||||
fill_pathname_join(texturepath, iconpath, sysname,
|
fill_pathname_join_concat(texturepath, iconpath, sysname,
|
||||||
|
".png",
|
||||||
sizeof(texturepath));
|
sizeof(texturepath));
|
||||||
strlcat(texturepath, ".png", sizeof(texturepath));
|
|
||||||
|
|
||||||
fill_pathname_join(content_texturepath, iconpath,
|
fill_pathname_join_concat(content_texturepath, iconpath,
|
||||||
sysname, sizeof(content_texturepath));
|
sysname,
|
||||||
strlcat(content_texturepath, "-content.png",
|
"-content.png",
|
||||||
sizeof(content_texturepath));
|
sizeof(content_texturepath));
|
||||||
|
|
||||||
image_texture_load(&ti, texturepath);
|
image_texture_load(&ti, texturepath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user