diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index cc16645d02..85131706b4 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -243,7 +243,7 @@ void fill_pathname_noext(char *out_path, const char *in_path, retro_assert(strlcat(out_path, replace, size) < size); } -static char *find_last_slash(const char *str) +char *find_last_slash(const char *str) { const char *slash = strrchr(str, '/'); #ifdef _WIN32 diff --git a/libretro-common/include/file/file_path.h b/libretro-common/include/file/file_path.h index 0ac5ffe89b..527cdeebf7 100644 --- a/libretro-common/include/file/file_path.h +++ b/libretro-common/include/file/file_path.h @@ -211,6 +211,16 @@ void fill_dated_filename(char *out_filename, void fill_pathname_noext(char *out_path, const char *in_path, const char *replace, size_t size); +/** + * find_last_slash: + * @str : input path + * + * Gets a pointer to the last slash in the input path. + * + * Returns: a pointer to the last slash in the input path. + **/ +char *find_last_slash(const char *str); + /** * fill_pathname_dir: * @in_dir : input directory path