diff --git a/libretro-common/include/file/file_path.h b/libretro-common/include/file/file_path.h index b861373b71..08dba54aad 100644 --- a/libretro-common/include/file/file_path.h +++ b/libretro-common/include/file/file_path.h @@ -194,6 +194,22 @@ void fill_pathname(char *out_path, const char *in_path, void fill_dated_filename(char *out_filename, const char *ext, size_t size); +/** + * fill_str_dated_filename: + * @out_filename : output filename + * @in_str : input string + * @ext : extension of output filename + * @size : buffer size of output filename + * + * Creates a 'dated' filename prefixed by the string @in_str, and + * concatenates extension (@ext) to it. + * + * E.g.: + * out_filename = "RetroArch-{year}{month}{day}-{Hour}{Minute}{Second}.{@ext}" + **/ +void fill_str_dated_filename(char *out_filename, + const char *in_str, const char *ext, size_t size); + /** * fill_pathname_noext: * @out_path : output path