mirror of
https://github.com/libretro/RetroArch
synced 2024-12-27 15:29:23 +00:00
Create FILE_PATH_AUTO_EXTENSION
This commit is contained in:
parent
1e9300be68
commit
dcbd68b11b
@ -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 ?
|
||||
|
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user