From 197e8a77a55d543930aa2ffe7834b6f067eddceb Mon Sep 17 00:00:00 2001 From: Alice R Date: Wed, 6 Dec 2023 02:16:06 -0700 Subject: [PATCH] Enable save slots by default on consoles. (#392) Co-authored-by: Ian Burgmyer --- docs/changelog.txt | 1 + src/configure.c | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index b5ba523c5..b36232a6e 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -255,6 +255,7 @@ USERS FWRITE_APPEND) is now stored in save files. This fixes a bug where the output file would be reopened in the wrong mode (ab) when reloading a saved game. ++ save_slots is now enabled by default for consoles. (Spectere) + editor_show_thing_toggles is now enabled by default. - board_editor_hide_help and robot_editor_hide_help are no longer enabled by default for accessibility. diff --git a/src/configure.c b/src/configure.c index 117875c91..0068f52b6 100644 --- a/src/configure.c +++ b/src/configure.c @@ -52,15 +52,18 @@ #ifdef CONFIG_NDS #define VIDEO_OUTPUT_DEFAULT "nds" #define VIDEO_RATIO_DEFAULT RATIO_CLASSIC_4_3 +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_DREAMCAST #define VIDEO_OUTPUT_DEFAULT "dreamcast" +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_GP2X #define VIDEO_OUTPUT_DEFAULT "gp2x" #define AUDIO_BUFFER_SAMPLES 128 +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_PSP @@ -68,6 +71,7 @@ #define FULLSCREEN_HEIGHT_DEFAULT 363 #define FORCE_BPP_DEFAULT 8 #define FULLSCREEN_DEFAULT 1 +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_PSVITA @@ -77,6 +81,7 @@ #define FULLSCREEN_DEFAULT 1 #define VFS_ENABLE_DEFAULT true #define VFS_MAX_CACHE_SIZE_DEFAULT (1 << 27) /* 128 MiB */ +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_WII @@ -84,6 +89,7 @@ #define FULLSCREEN_DEFAULT 1 #define GL_VSYNC_DEFAULT 1 #define VIDEO_RATIO_DEFAULT RATIO_CLASSIC_4_3 +#define SAVE_SLOTS_DEFAULT true #ifdef CONFIG_SDL #define VIDEO_OUTPUT_DEFAULT "software" #define FULLSCREEN_WIDTH_DEFAULT 640 @@ -96,12 +102,14 @@ #define VIDEO_RATIO_DEFAULT RATIO_CLASSIC_4_3 #define VFS_ENABLE_DEFAULT true #define VFS_MAX_CACHE_SIZE_DEFAULT (1 << 25) /* 32 MiB */ +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_WIIU #define FULLSCREEN_WIDTH_DEFAULT 1280 #define FULLSCREEN_HEIGHT_DEFAULT 720 #define FULLSCREEN_DEFAULT 1 +#define SAVE_SLOTS_DEFAULT true #endif #ifdef CONFIG_SWITCH @@ -109,6 +117,7 @@ #define FULLSCREEN_WIDTH_DEFAULT 1920 #define FULLSCREEN_HEIGHT_DEFAULT 1080 #define FULLSCREEN_DEFAULT 1 +#define SAVE_SLOTS_DEFAULT true #endif #ifdef ANDROID @@ -200,6 +209,10 @@ #define AUTO_DECRYPT_WORLDS true #endif +#ifndef SAVE_SLOTS_DEFAULT +#define SAVE_SLOTS_DEFAULT false +#endif + #ifdef CONFIG_UPDATER #ifndef MAX_UPDATE_HOSTS #define MAX_UPDATE_HOSTS 16 @@ -293,7 +306,7 @@ static const struct config_info user_conf_default = false, // no_titlescreen false, // system_mouse false, // grab_mouse - false, // save_slots + SAVE_SLOTS_DEFAULT, // save_slots "%w.", // save_slots_name ".sav", // save_slots_ext