renamed setup option for showing load/save snapshot buttons
authorHolger Schemel <info@artsoft.org>
Sat, 10 Jul 2021 10:48:45 +0000 (12:48 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 10 Jul 2021 10:48:45 +0000 (12:48 +0200)
src/files.c
src/game.c
src/libgame/system.h
src/screens.c
src/tape.c

index 1200be3a81e2c70477d0d031efb0e7998924f8ba..50314065cadd0bd100e16ec6b0872f99d86868b8 100644 (file)
@@ -9679,7 +9679,7 @@ static struct TokenInfo global_setup_tokens[] =
   },
   {
     TYPE_SWITCH,
-    &setup.show_snapshot_buttons,              "show_snapshot_buttons"
+    &setup.show_load_save_buttons,             "show_load_save_buttons"
   },
   {
     TYPE_SWITCH,
@@ -10364,7 +10364,7 @@ static void setSetupInfoToDefaults(struct SetupInfo *si)
   si->game_frame_delay = GAME_FRAME_DELAY;
   si->sp_show_border_elements = FALSE;
   si->small_game_graphics = FALSE;
-  si->show_snapshot_buttons = FALSE;
+  si->show_load_save_buttons = FALSE;
   si->show_undo_redo_buttons = FALSE;
   si->only_show_local_scores = FALSE;
 
index 932b8c9ea827976f4195656a5277b801e9355031..72af644a3b9f003cffc756c33ed58820d37d2269 100644 (file)
@@ -16162,7 +16162,7 @@ static void UnmapGameButtonsAtSamePosition(int id)
 
 static void UnmapGameButtonsAtSamePosition_All(void)
 {
-  if (setup.show_snapshot_buttons)
+  if (setup.show_load_save_buttons)
   {
     UnmapGameButtonsAtSamePosition(GAME_CTRL_ID_SAVE);
     UnmapGameButtonsAtSamePosition(GAME_CTRL_ID_PAUSE2);
index 246960319b27304cd7fe6e8cb89783c76a8c64d8..636240d58e196af73beb329acdb23e04a97a9ef5 100644 (file)
@@ -1474,7 +1474,7 @@ struct SetupInfo
   int game_frame_delay;
   boolean sp_show_border_elements;
   boolean small_game_graphics;
-  boolean show_snapshot_buttons;
+  boolean show_load_save_buttons;
   boolean show_undo_redo_buttons;
   boolean only_show_local_scores;
 
index b7678d0920c9d460b54ecdaebcf64c10900264cd..4dcaef34e2a133b1ea575052dacad39d61270173 100644 (file)
@@ -6794,7 +6794,7 @@ static struct TokenInfo setup_info_game[] =
 #endif
   { TYPE_ENTER_LIST, execSetupChooseSnapshotMode,"Game Engine Snapshot Mode:" },
   { TYPE_STRING,       &snapshot_mode_text,    ""                      },
-  { TYPE_SWITCH,       &setup.show_snapshot_buttons,"Show Snapshot Buttons:" },
+  { TYPE_SWITCH,       &setup.show_load_save_buttons,"Show Load/Save Buttons:" },
   { TYPE_SWITCH,       &setup.show_undo_redo_buttons,"Show Undo/Redo Buttons:" },
   { TYPE_EMPTY,                NULL,                   ""                      },
   { TYPE_LEAVE_MENU,   execSetupMain,          "Back"                  },
index aa2f84a572e174a65a51d768d95481996a7da13a..1ea9d80e36f55aae65e216b01d886b1df7c16a57 100644 (file)
@@ -828,7 +828,7 @@ void TapeTogglePause(boolean toggle_mode)
 
   if (game_status == GAME_MODE_PLAYING)
   {
-    if (setup.show_snapshot_buttons &&
+    if (setup.show_load_save_buttons &&
        setup.show_undo_redo_buttons &&
        CheckEngineSnapshotList())
     {