mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-11 04:24:17 +00:00
Cleanups
This commit is contained in:
parent
543c188da6
commit
83bafe1b19
@ -585,6 +585,15 @@ void fill_pathname_join(char *out_path,
|
||||
retro_assert(strlcat(out_path, path, size) < size);
|
||||
}
|
||||
|
||||
static void fill_string_join(char *out_path,
|
||||
const char *append, size_t size)
|
||||
{
|
||||
if (*out_path)
|
||||
fill_pathname_slash(out_path, size);
|
||||
|
||||
retro_assert(strlcat(out_path, append, size) < size);
|
||||
}
|
||||
|
||||
void fill_pathname_join_special_ext(char *out_path,
|
||||
const char *dir, const char *path,
|
||||
const char *last, const char *ext,
|
||||
@ -611,14 +620,6 @@ void fill_pathname_join_noext(char *out_path,
|
||||
path_remove_extension(out_path);
|
||||
}
|
||||
|
||||
void fill_string_join(char *out_path,
|
||||
const char *append, size_t size)
|
||||
{
|
||||
if (*out_path)
|
||||
fill_pathname_slash(out_path, size);
|
||||
|
||||
retro_assert(strlcat(out_path, append, size) < size);
|
||||
}
|
||||
|
||||
/**
|
||||
* fill_pathname_join_delim:
|
||||
|
@ -323,19 +323,6 @@ void fill_pathname_join_concat(char *out_path,
|
||||
void fill_pathname_join_noext(char *out_path,
|
||||
const char *dir, const char *path, size_t size);
|
||||
|
||||
/**
|
||||
* fill_string_join:
|
||||
* @out_path : output path
|
||||
* @path : path
|
||||
* @size : size of output path
|
||||
*
|
||||
* Joins a string (@out_path) and path (@append) together.
|
||||
* Makes sure not to get two consecutive slashes
|
||||
* between directory and path.
|
||||
**/
|
||||
void fill_string_join(char *out_path,
|
||||
const char *path, size_t size);
|
||||
|
||||
/**
|
||||
* fill_pathname_join_delim:
|
||||
* @out_path : output path
|
||||
|
Loading…
Reference in New Issue
Block a user