Add FILE_PATH_BSV_EXTENSION

This commit is contained in:
twinaphex 2016-07-01 05:59:36 +02:00
parent 394cbbef59
commit 86fa52a2ea
4 changed files with 8 additions and 2 deletions

View File

@ -61,6 +61,7 @@ enum file_path_enum
FILE_PATH_CHT_EXTENSION,
FILE_PATH_LPL_EXTENSION,
FILE_PATH_RDB_EXTENSION,
FILE_PATH_BSV_EXTENSION,
FILE_PATH_ZIP_EXTENSION,
FILE_PATH_7Z_EXTENSION,
FILE_PATH_CONFIG_EXTENSION,

View File

@ -37,6 +37,8 @@ const char *file_path_str(enum file_path_enum enum_idx)
return "[ERROR]";
case FILE_PATH_LOG_INFO:
return "[INFO]";
case FILE_PATH_BSV_EXTENSION:
return ".bsv";
case FILE_PATH_OPT_EXTENSION:
return ".opt";
case FILE_PATH_CORE_INFO_EXTENSION:

View File

@ -46,7 +46,8 @@ struct core_option_manager
bool updated;
};
static bool core_option_manager_parse_variable(core_option_manager_t *opt, size_t idx,
static bool core_option_manager_parse_variable(
core_option_manager_t *opt, size_t idx,
const struct retro_variable *var)
{
const char *val_start = NULL;

View File

@ -244,7 +244,9 @@ static bool runloop_check_movie_init(void)
else
strlcpy(path, bsv_movie_get_path(), sizeof(path));
strlcat(path, ".bsv", sizeof(path));
strlcat(path,
file_path_str(FILE_PATH_BSV_EXTENSION),
sizeof(path));
snprintf(msg, sizeof(msg), "%s \"%s\".",
msg_hash_to_str(MSG_STARTING_MOVIE_RECORD_TO),