From e9b39cc17f64c2b9ac124d38c1a4de7d03ebe2cb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 26 Jun 2016 09:58:10 +0200 Subject: [PATCH] Cleanups --- configuration.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configuration.c b/configuration.c index 2f2340fbe7..471b75535c 100644 --- a/configuration.c +++ b/configuration.c @@ -1863,8 +1863,10 @@ static bool config_load_file(const char *path, bool set_defaults) sizeof(global->dir.savefile)); strlcpy(global->name.savefile, tmp_str, sizeof(global->name.savefile)); - fill_pathname_dir(global->name.savefile, global->name.base, - ".srm", sizeof(global->name.savefile)); + fill_pathname_dir(global->name.savefile, + global->name.base, + file_path_str(FILE_PATH_SRM_EXTENSION), + sizeof(global->name.savefile)); } else RARCH_WARN("savefile_directory is not a directory, ignoring ...\n"); @@ -1882,8 +1884,10 @@ static bool config_load_file(const char *path, bool set_defaults) sizeof(global->dir.savestate)); strlcpy(global->name.savestate, tmp_str, sizeof(global->name.savestate)); - fill_pathname_dir(global->name.savestate, global->name.base, - ".state", sizeof(global->name.savestate)); + fill_pathname_dir(global->name.savestate, + global->name.base, + file_path_str(FILE_PATH_STATE_EXTENSION), + sizeof(global->name.savestate)); } else RARCH_WARN("savestate_directory is not a directory, ignoring ...\n");