From: Holger Schemel Date: Sat, 10 Jul 2021 10:48:45 +0000 (+0200) Subject: renamed setup option for showing load/save snapshot buttons X-Git-Tag: 4.3.0.0~105 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=576a46a06a23264fbc2345cf591a0dbe7fd2a767;p=rocksndiamonds.git renamed setup option for showing load/save snapshot buttons --- diff --git a/src/files.c b/src/files.c index 1200be3a..50314065 100644 --- a/src/files.c +++ b/src/files.c @@ -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; diff --git a/src/game.c b/src/game.c index 932b8c9e..72af644a 100644 --- a/src/game.c +++ b/src/game.c @@ -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); diff --git a/src/libgame/system.h b/src/libgame/system.h index 24696031..636240d5 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -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; diff --git a/src/screens.c b/src/screens.c index b7678d09..4dcaef34 100644 --- a/src/screens.c +++ b/src/screens.c @@ -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" }, diff --git a/src/tape.c b/src/tape.c index aa2f84a5..1ea9d80e 100644 --- a/src/tape.c +++ b/src/tape.c @@ -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()) {