From dcbd68b11be17576b1712ded8128f732ec17436c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 1 Jul 2016 07:07:06 +0200 Subject: [PATCH] Create FILE_PATH_AUTO_EXTENSION --- command.c | 6 ++++-- file_path_special.h | 1 + file_path_str.c | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index 05f34063cf..31dc5710e7 100644 --- a/command.c +++ b/command.c @@ -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 ? diff --git a/file_path_special.h b/file_path_special.h index b7428a0c10..29321181a7 100644 --- a/file_path_special.h +++ b/file_path_special.h @@ -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, diff --git a/file_path_str.c b/file_path_str.c index d08ad14475..18575d1cc3 100644 --- a/file_path_str.c +++ b/file_path_str.c @@ -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: