mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
Designate fill_pathname_noext as deprecated function
This commit is contained in:
parent
d706c9c5bf
commit
7186d75c44
@ -296,26 +296,6 @@ void fill_pathname(char *out_path, const char *in_path,
|
|||||||
strlcat(out_path, replace, size);
|
strlcat(out_path, replace, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* fill_pathname_noext:
|
|
||||||
* @out_path : output path
|
|
||||||
* @in_path : input path
|
|
||||||
* @replace : what to replace
|
|
||||||
* @size : buffer size of output path
|
|
||||||
*
|
|
||||||
* Appends a filename extension 'replace' to 'in_path', and outputs
|
|
||||||
* result in 'out_path'.
|
|
||||||
*
|
|
||||||
* Assumes in_path has no extension. If an extension is still
|
|
||||||
* present in 'in_path', it will be ignored.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
size_t fill_pathname_noext(char *out_path, const char *in_path,
|
|
||||||
const char *replace, size_t size)
|
|
||||||
{
|
|
||||||
strlcpy(out_path, in_path, size);
|
|
||||||
return strlcat(out_path, replace, size);
|
|
||||||
}
|
|
||||||
|
|
||||||
char *find_last_slash(const char *str)
|
char *find_last_slash(const char *str)
|
||||||
{
|
{
|
||||||
@ -1445,3 +1425,24 @@ void fill_short_pathname_representation_noext(char* out_rep,
|
|||||||
fill_short_pathname_representation(out_rep, in_path, size);
|
fill_short_pathname_representation(out_rep, in_path, size);
|
||||||
path_remove_extension(out_rep);
|
path_remove_extension(out_rep);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fill_pathname_noext:
|
||||||
|
* @out_path : output path
|
||||||
|
* @in_path : input path
|
||||||
|
* @replace : what to replace
|
||||||
|
* @size : buffer size of output path
|
||||||
|
*
|
||||||
|
* Appends a filename extension 'replace' to 'in_path', and outputs
|
||||||
|
* result in 'out_path'.
|
||||||
|
*
|
||||||
|
* Assumes in_path has no extension. If an extension is still
|
||||||
|
* present in 'in_path', it will be ignored.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
size_t fill_pathname_noext(char *out_path, const char *in_path,
|
||||||
|
const char *replace, size_t size)
|
||||||
|
{
|
||||||
|
strlcpy(out_path, in_path, size);
|
||||||
|
return strlcat(out_path, replace, size);
|
||||||
|
}
|
||||||
|
@ -268,23 +268,6 @@ size_t fill_dated_filename(char *out_filename,
|
|||||||
void fill_str_dated_filename(char *out_filename,
|
void fill_str_dated_filename(char *out_filename,
|
||||||
const char *in_str, const char *ext, size_t size);
|
const char *in_str, const char *ext, size_t size);
|
||||||
|
|
||||||
/**
|
|
||||||
* fill_pathname_noext:
|
|
||||||
* @out_path : output path
|
|
||||||
* @in_path : input path
|
|
||||||
* @replace : what to replace
|
|
||||||
* @size : buffer size of output path
|
|
||||||
*
|
|
||||||
* Appends a filename extension 'replace' to 'in_path', and outputs
|
|
||||||
* result in 'out_path'.
|
|
||||||
*
|
|
||||||
* Assumes in_path has no extension. If an extension is still
|
|
||||||
* present in 'in_path', it will be ignored.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
size_t fill_pathname_noext(char *out_path, const char *in_path,
|
|
||||||
const char *replace, size_t size);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* find_last_slash:
|
* find_last_slash:
|
||||||
* @str : input path
|
* @str : input path
|
||||||
@ -556,6 +539,23 @@ size_t fill_pathname_join_delim_concat(char *out_path, const char *dir,
|
|||||||
const char *path, const char delim, const char *concat,
|
const char *path, const char delim, const char *concat,
|
||||||
size_t size);
|
size_t size);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* fill_pathname_noext:
|
||||||
|
* @out_path : output path
|
||||||
|
* @in_path : input path
|
||||||
|
* @replace : what to replace
|
||||||
|
* @size : buffer size of output path
|
||||||
|
*
|
||||||
|
* Appends a filename extension 'replace' to 'in_path', and outputs
|
||||||
|
* result in 'out_path'.
|
||||||
|
*
|
||||||
|
* Assumes in_path has no extension. If an extension is still
|
||||||
|
* present in 'in_path', it will be ignored.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
size_t fill_pathname_noext(char *out_path, const char *in_path,
|
||||||
|
const char *replace, size_t size);
|
||||||
|
|
||||||
RETRO_END_DECLS
|
RETRO_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user