added setup options to skip (un)covering and hatching for BD engine
authorHolger Schemel <info@artsoft.org>
Sun, 11 Feb 2024 13:50:07 +0000 (14:50 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 18 Feb 2024 14:57:43 +0000 (15:57 +0100)
src/files.c
src/screens.c

index b3ef9a7e8fa58dd37a302b626de6da299ec29c7b..6944fbaf266f3e84116c84de19f4243c646d1bd6 100644 (file)
@@ -9802,6 +9802,14 @@ static struct TokenInfo global_setup_tokens[] =
     TYPE_INTEGER,
     &setup.game_frame_delay,                   "game_frame_delay"
   },
+  {
+    TYPE_SWITCH,
+    &setup.bd_skip_uncovering,                 "bd_skip_uncovering"
+  },
+  {
+    TYPE_SWITCH,
+    &setup.bd_skip_hatching,                   "bd_skip_hatching"
+  },
   {
     TYPE_SWITCH,
     &setup.sp_show_border_elements,            "sp_show_border_elements"
@@ -10618,6 +10626,8 @@ static void setSetupInfoToDefaults(struct SetupInfo *si)
   si->prefer_extra_panel_items = TRUE;
   si->game_speed_extended = FALSE;
   si->game_frame_delay = GAME_FRAME_DELAY;
+  si->bd_skip_uncovering = FALSE;
+  si->bd_skip_hatching = FALSE;
   si->sp_show_border_elements = FALSE;
   si->small_game_graphics = FALSE;
   si->show_load_save_buttons = FALSE;
index 8b631b7b3872e09c72614d2e50acb27e2bf07e0f..cb8f798547091a6e8b110f3414ebdd55fd1f2b0f 100644 (file)
@@ -7475,6 +7475,10 @@ static struct TokenInfo setup_info_game[] =
 
 static struct TokenInfo setup_info_engines[] =
 {
+  { TYPE_HEADLINE,     NULL,                   "Boulder Dash"          },
+  { TYPE_SWITCH,       &setup.bd_skip_uncovering, "Skip (un)covering screen:"  },
+  { TYPE_SWITCH,       &setup.bd_skip_hatching,   "Skip hatching player:"      },
+  { TYPE_EMPTY,                NULL,                   ""                      },
   { TYPE_HEADLINE,     NULL,                   "Emerald Mine"          },
   { TYPE_SWITCH,       &setup.forced_scroll_delay, "Scroll Delay:"     },
   { TYPE_ECS_AGA,      &setup.prefer_aga_graphics, "Amiga Graphics Chipset:" },