mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Add noext versions
This commit is contained in:
parent
ca3eecf5c0
commit
7647c9be59
@ -346,6 +346,12 @@ void fill_pathname_base(char *out, const char *in_path, size_t size)
|
||||
retro_assert(strlcpy(out, ptr, size) < size);
|
||||
}
|
||||
|
||||
void fill_pathname_base_noext(char *out, const char *in_path, size_t size)
|
||||
{
|
||||
fill_pathname_base(out, in_path, size);
|
||||
path_remove_extension(out);
|
||||
}
|
||||
|
||||
/**
|
||||
* fill_pathname_basedir:
|
||||
* @out_dir : output directory
|
||||
@ -364,6 +370,13 @@ void fill_pathname_basedir(char *out_dir,
|
||||
path_basedir(out_dir);
|
||||
}
|
||||
|
||||
void fill_pathname_basedir_noext(char *out_dir,
|
||||
const char *in_path, size_t size)
|
||||
{
|
||||
fill_pathname_basedir(out_dir, in_path, size);
|
||||
path_remove_extension(out_dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* fill_pathname_parent_dir:
|
||||
* @out_dir : output directory
|
||||
|
@ -251,6 +251,9 @@ void fill_pathname_dir(char *in_dir, const char *in_basename,
|
||||
**/
|
||||
void fill_pathname_base(char *out_path, const char *in_path, size_t size);
|
||||
|
||||
void fill_pathname_base_noext(char *out_dir,
|
||||
const char *in_path, size_t size);
|
||||
|
||||
/**
|
||||
* fill_pathname_basedir:
|
||||
* @out_dir : output directory
|
||||
@ -263,6 +266,9 @@ void fill_pathname_base(char *out_path, const char *in_path, size_t size);
|
||||
**/
|
||||
void fill_pathname_basedir(char *out_path, const char *in_path, size_t size);
|
||||
|
||||
void fill_pathname_basedir_noext(char *out_dir,
|
||||
const char *in_path, size_t size);
|
||||
|
||||
/**
|
||||
* fill_pathname_parent_dir:
|
||||
* @out_dir : output directory
|
||||
|
Loading…
x
Reference in New Issue
Block a user