Create FILE_PATH_AUTO_EXTENSION

This commit is contained in:
twinaphex 2016-07-01 07:07:06 +02:00
parent 1e9300be68
commit dcbd68b11b
3 changed files with 7 additions and 2 deletions

View File

@ -1224,7 +1224,8 @@ static void command_event_load_auto_state(void)
return;
fill_pathname_noext(savestate_name_auto, global->name.savestate,
".auto", sizeof(savestate_name_auto));
file_path_str(FILE_PATH_AUTO_EXTENSION),
sizeof(savestate_name_auto));
if (!path_file_exists(savestate_name_auto))
return;
@ -1401,7 +1402,8 @@ static bool command_event_save_auto_state(void)
#endif
fill_pathname_noext(savestate_name_auto, global->name.savestate,
".auto", sizeof(savestate_name_auto));
file_path_str(FILE_PATH_AUTO_EXTENSION),
sizeof(savestate_name_auto));
ret = content_save_state((const char*)savestate_name_auto, true);
RARCH_LOG("Auto save state to \"%s\" %s.\n", savestate_name_auto, ret ?

View File

@ -62,6 +62,7 @@ enum file_path_enum
FILE_PATH_LPL_EXTENSION,
FILE_PATH_RDB_EXTENSION,
FILE_PATH_BSV_EXTENSION,
FILE_PATH_AUTO_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_AUTO_EXTENSION:
return ".auto";
case FILE_PATH_BSV_EXTENSION:
return ".bsv";
case FILE_PATH_OPT_EXTENSION: