added new config file options to hide shortcuts sub-menus
authorHolger Schemel <info@artsoft.org>
Wed, 16 Nov 2022 22:49:42 +0000 (23:49 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 16 Nov 2022 22:49:42 +0000 (23:49 +0100)
src/files.c
src/libgame/system.h
src/screens.c

index 1cc2d28080321ee0d22ce183bf8a77eaac5f81ca..de5017197aa2e8c4bb9754ff628082f9b4811f53 100644 (file)
@@ -10155,6 +10155,26 @@ static struct TokenInfo internal_setup_tokens[] =
     TYPE_BOOLEAN,
     &setup.internal.menu_save_and_exit,                "menu_save_and_exit"
   },
+  {
+    TYPE_BOOLEAN,
+    &setup.internal.menu_shortcuts_various,    "menu_shortcuts_various"
+  },
+  {
+    TYPE_BOOLEAN,
+    &setup.internal.menu_shortcuts_focus,      "menu_shortcuts_focus"
+  },
+  {
+    TYPE_BOOLEAN,
+    &setup.internal.menu_shortcuts_tape,       "menu_shortcuts_tape"
+  },
+  {
+    TYPE_BOOLEAN,
+    &setup.internal.menu_shortcuts_sound,      "menu_shortcuts_sound"
+  },
+  {
+    TYPE_BOOLEAN,
+    &setup.internal.menu_shortcuts_snap,       "menu_shortcuts_snap"
+  },
   {
     TYPE_BOOLEAN,
     &setup.internal.info_title,                        "info_title"
index 9b4dece1f0cfdf55fab59bf8975e9a9352486d02..34655d654e8e106ae0477e8e38f2c2905338472f 100644 (file)
@@ -1463,6 +1463,12 @@ struct SetupInternalInfo
   boolean menu_exit;
   boolean menu_save_and_exit;
 
+  boolean menu_shortcuts_various;
+  boolean menu_shortcuts_focus;
+  boolean menu_shortcuts_tape;
+  boolean menu_shortcuts_sound;
+  boolean menu_shortcuts_snap;
+
   boolean info_title;
   boolean info_elements;
   boolean info_music;
index f75a906b568ff88f45418280d811bf569f6ccf94..5a559b1444fd36189d967bd88554a9d0ae7859af 100644 (file)
@@ -7274,6 +7274,12 @@ static struct
   { &setup.internal.menu_exit,         execExitSetup                   },
   { &setup.internal.menu_save_and_exit,        execSaveAndExitSetup            },
 
+  { &setup.internal.menu_shortcuts_various,    execSetupShortcuts1     },
+  { &setup.internal.menu_shortcuts_focus,      execSetupShortcuts2     },
+  { &setup.internal.menu_shortcuts_tape,       execSetupShortcuts3     },
+  { &setup.internal.menu_shortcuts_sound,      execSetupShortcuts4     },
+  { &setup.internal.menu_shortcuts_snap,       execSetupShortcuts5     },
+
   { &setup.internal.info_title,                execInfoTitleScreen             },
   { &setup.internal.info_elements,     execInfoElements                },
   { &setup.internal.info_music,                execInfoMusic                   },