[29] | 1 | ; AiR-BOOT (c) Copyright 1998-2008 M. Kiewitz
|
---|
| 2 | ;
|
---|
| 3 | ; This file is part of AiR-BOOT
|
---|
| 4 | ;
|
---|
| 5 | ; AiR-BOOT is free software: you can redistribute it and/or modify it under
|
---|
| 6 | ; the terms of the GNU General Public License as published by the Free
|
---|
| 7 | ; Software Foundation, either version 3 of the License, or (at your option)
|
---|
| 8 | ; any later version.
|
---|
| 9 | ;
|
---|
| 10 | ; AiR-BOOT is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
| 11 | ; WARRANTY: without even the implied warranty of MERCHANTABILITY or FITNESS
|
---|
| 12 | ; FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
---|
| 13 | ; details.
|
---|
| 14 | ;
|
---|
| 15 | ; You should have received a copy of the GNU General Public License along with
|
---|
| 16 | ; AiR-BOOT. If not, see <http://www.gnu.org/licenses/>.
|
---|
| 17 | ;
|
---|
[8] | 18 | ;---------------------------------------------------------------------------
|
---|
| 19 | ; AiR-BOOT SETUP / MENU STRUCTURE
|
---|
| 20 | ;---------------------------------------------------------------------------
|
---|
| 21 |
|
---|
| 22 | ; Format of a Menu Item:
|
---|
| 23 | ; =======================
|
---|
| 24 | ; RoutinePtr :WORD - Points to Modification/Exec-Routine
|
---|
| 25 | ; if 0, item is empty and will get skiped
|
---|
| 26 | ; VariablePtr :WORD - Points to actual Item-Data
|
---|
| 27 | ; if 0, no ItemPack. Is used for e.g.
|
---|
| 28 | ; main menu items and will exec only
|
---|
| 29 | ; ItemNamePtr :WORD - Points to Item-Name
|
---|
| 30 | ; ItemHelpPtr :WORD - Points to Item-Help Text
|
---|
| 31 | ; If VariablePtr>0:
|
---|
| 32 | ; ItemPack :BYTE*12 - Spaceholder for displaying
|
---|
| 33 | ;
|
---|
| 34 | ;
|
---|
| 35 | ; Example:
|
---|
| 36 | ; dw offset MBRS_Magic_ChangePartition, offset CFG_PartDefault
|
---|
| 37 | ; dw offset TXT_SETUP_DefaultPart, offset TXT_SETUPHELP_DefaultPart
|
---|
| 38 | ; dw 6 dup (0)
|
---|
| 39 | ;
|
---|
| 40 | ; Will be a normal item-entry (not a menu-entry).
|
---|
| 41 | ; If modified MBRS_Magic_ChangePartition will get called and CFG_PartDefault
|
---|
| 42 | ; will get modified according to the users key press.
|
---|
| 43 | ; The name of the item will be taken from TXT_SETUP_DefaultPart and if help is
|
---|
| 44 | ; requested TXT_SETUPHELP_DefaultPart will get shown.
|
---|
| 45 | ;
|
---|
| 46 | ;
|
---|
| 47 | ; Further Example:
|
---|
| 48 | ; dw offset MBRS_Routines_EnterMenu_PartitionSetup, 0
|
---|
| 49 | ; dw offset TXT_SETUP_PartitionSetup, offset TXT_SETUPHELP_PartitionSetup
|
---|
| 50 | ;
|
---|
| 51 | ; Will be a menu-entry (due VariablePtr==0)
|
---|
| 52 | ; If enter is pressed MBRS_Routines_EnterMenu_PartitionSetup will get called
|
---|
| 53 | ; The name of the menu-entry will be taken from TXT_SETUP_PartitionSetup and
|
---|
| 54 | ; if help is requested TXT_SETUPHELP_PartitionSetup will get shown.
|
---|
| 55 | ;
|
---|
| 56 |
|
---|
[51] | 57 | IFDEF MODULE_NAMES
|
---|
[30] | 58 | DB 'MENUS',0
|
---|
| 59 | ENDIF
|
---|
| 60 |
|
---|
[8] | 61 | LocMENU_LenOfMenuPtrBlock equ 8
|
---|
| 62 | LocMENU_LenOfItemPack equ 12
|
---|
| 63 | LocMENU_RoutinePtr equ 0
|
---|
| 64 | LocMENU_VariablePtr equ 2
|
---|
| 65 | LocMENU_ItemNamePtr equ 4
|
---|
| 66 | LocMENU_ItemHelpPtr equ 6
|
---|
| 67 | LocMENU_ItemPack equ 8 ; only if VariablePtr>0
|
---|
| 68 |
|
---|
[30] | 69 | SETUP_MainMenu:
|
---|
[8] | 70 | db 0 ; Where Current Item will get saved
|
---|
[40] | 71 | dw offset TXT_SETUPHELP_Main ; Pointer to help information
|
---|
[8] | 72 | ; The Menu-Items start here...
|
---|
| 73 | dw offset SETUP_EnterMenu_PartitionSetup, 0
|
---|
| 74 | dw offset TXT_SETUP_PartitionSetup, offset TXT_SETUPHELP_PartitionSetup
|
---|
| 75 | dw 0, 0
|
---|
| 76 | dw 0, 0
|
---|
| 77 | dw offset SETUP_EnterMenu_BasicOptions, 0
|
---|
| 78 | dw offset TXT_SETUP_BasicOptions, offset TXT_SETUPHELP_BasicOptions
|
---|
| 79 | dw 0, 0
|
---|
| 80 | dw 0, 0
|
---|
| 81 | dw offset SETUP_EnterMenu_AdvancedOptions, 0
|
---|
| 82 | dw offset TXT_SETUP_AdvOptions, offset TXT_SETUPHELP_AdvOptions
|
---|
| 83 | dw 0, 0
|
---|
| 84 | dw 0, 0
|
---|
| 85 | dw offset SETUP_EnterMenu_ExtendedOptions, 0
|
---|
| 86 | dw offset TXT_SETUP_ExtOptions, offset TXT_SETUPHELP_ExtOptions
|
---|
[51] | 87 |
|
---|
[8] | 88 | ; The Menu-Items of the right side start here...
|
---|
| 89 | dw offset SETUP_EnterMenu_DefineMasterPassword, 0
|
---|
| 90 | dw offset TXT_SETUP_DefMasterPwd, offset TXT_SETUPHELP_DefMasterPwd
|
---|
| 91 | dw 0, 0
|
---|
| 92 | dw 0, 0
|
---|
| 93 | dw offset SETUP_EnterMenu_DefineBootPassword, 0
|
---|
| 94 | dw offset TXT_SETUP_DefBootPwd, offset TXT_SETUPHELP_DefBootPwd
|
---|
| 95 | dw 0, 0
|
---|
| 96 | dw 0, 0
|
---|
| 97 | dw offset SETUP_EnterMenu_SaveAndExitSetup, 0
|
---|
| 98 | dw offset TXT_SETUP_SaveAndExit, offset TXT_SETUPHELP_SaveAndExit
|
---|
| 99 | dw 0, 0
|
---|
| 100 | dw 0, 0
|
---|
| 101 | dw offset SETUP_EnterMenu_ExitWithoutSaving, 0
|
---|
| 102 | dw offset TXT_SETUP_JustExit, offset TXT_SETUPHELP_JustExit
|
---|
| 103 |
|
---|
| 104 | SETUP_BasicOptions:
|
---|
| 105 | db 0 ; Where Current Item will get saved
|
---|
[40] | 106 | dw offset TXT_SETUPHELP_SubMenu ; Pointer to help info
|
---|
[8] | 107 | ; The Menu-Items start here...
|
---|
[29] | 108 | dw offset SETUPMAGIC_ChangeDefaultSelection, offset CFG_PartDefault
|
---|
| 109 | dw offset TXT_SETUP_DefaultSelection, offset TXT_SETUPHELP_DefaultSelection
|
---|
[8] | 110 | dw 6 dup (0)
|
---|
[29] | 111 | ; ATTENTION: ChangeDefaultSelection is redrawn hardcoded in
|
---|
| 112 | ; SETUPMAGIC_ChangeFloppyDisplay.
|
---|
[8] | 113 | dw offset SETUPMAGIC_EnableDisable, offset CFG_TimedBoot
|
---|
| 114 | dw offset TXT_SETUP_TimedBoot, offset TXT_SETUPHELP_TimedBoot
|
---|
| 115 | dw 6 dup (0)
|
---|
| 116 | dw offset SETUPMAGIC_ChangeBootDelay, offset CFG_TimedSecs
|
---|
| 117 | dw offset TXT_SETUP_TimedBootDelay, offset TXT_SETUPHELP_TimedBootDelay
|
---|
| 118 | dw 6 dup (0)
|
---|
| 119 | dw offset SETUPMAGIC_ChangeTimedKeyHandling, offset CFG_TimedKeyHandling
|
---|
| 120 | dw offset TXT_SETUP_TimedKeyHandling, offset TXT_SETUPHELP_TimedKeyHandling
|
---|
| 121 | dw 6 dup (0)
|
---|
| 122 | dw offset SETUPMAGIC_EnableDisable, offset CFG_TimedBootLast
|
---|
| 123 | dw offset TXT_SETUP_BootLastIfTimed, offset TXT_SETUPHELP_BootLastIfTimed
|
---|
| 124 | dw 6 dup (0)
|
---|
| 125 | dw offset SETUPMAGIC_EnableDisable, offset CFG_RememberBoot
|
---|
| 126 | dw offset TXT_SETUP_RememberLastBoot, offset TXT_SETUPHELP_RememberLastBoot
|
---|
| 127 | dw 6 dup (0)
|
---|
| 128 | dw offset SETUPMAGIC_EnableDisable, offset CFG_RememberTimed
|
---|
| 129 | dw offset TXT_SETUP_RememberTimedBoot, offset TXT_SETUPHELP_RememberTimeBoot
|
---|
| 130 | dw 6 dup (0)
|
---|
| 131 | ; The Menu-Items of the right side start here...
|
---|
[29] | 132 | dw offset SETUPMAGIC_ChangeFloppyDisplay, offset CFG_IncludeFloppy
|
---|
[8] | 133 | dw offset TXT_SETUP_IncludeFloppy, offset TXT_SETUPHELP_IncludeFloppy
|
---|
| 134 | dw 6 dup (0)
|
---|
[51] | 135 |
|
---|
| 136 | ; Show LVM Drive Letters or not
|
---|
| 137 | dw offset SETUPMAGIC_EnableDisable, offset CFG_MiscFlags
|
---|
| 138 | dw offset TXT_SETUP_ShowLVMDriveLetters, offset TXT_SETUPHELP_ShowLVMDriveLetters
|
---|
| 139 | dw 6 dup (0)
|
---|
| 140 |
|
---|
| 141 | ;~ dw 0, 0
|
---|
| 142 | ;~ dw 0, 0
|
---|
| 143 |
|
---|
| 144 |
|
---|
[8] | 145 | dw offset SETUPMAGIC_EnableDisable, offset CFG_ProtectMBR
|
---|
[40] | 146 | dw offset TXT_SETUP_MbrProtection, offset TXT_SETUPHELP_MbrProtection
|
---|
[8] | 147 | dw 6 dup (0)
|
---|
| 148 | dw offset SETUPMAGIC_EnableDisable, offset CFG_IgnoreWriteToMBR
|
---|
[40] | 149 | dw offset TXT_SETUP_IgnoreMbrWrites, offset TXT_SETUPHELP_IgnoreMbrWrites
|
---|
[8] | 150 | dw 6 dup (0)
|
---|
| 151 | dw 0, 0
|
---|
| 152 | dw 0, 0
|
---|
| 153 | dw offset SETUPMAGIC_EnableDisable, offset CFG_MakeSound
|
---|
| 154 | dw offset TXT_SETUP_MakeSounds, offset TXT_SETUPHELP_MakeSounds
|
---|
| 155 | dw 6 dup (0)
|
---|
[224] | 156 |
|
---|
| 157 | ; While the FX-module is excluded from newer versions, we want to retain
|
---|
| 158 | ; the option of enabling it.
|
---|
| 159 | IFDEF FX_ENABLED
|
---|
[8] | 160 | dw offset SETUPMAGIC_EnableDisable, offset CFG_CooperBars
|
---|
| 161 | dw offset TXT_SETUP_CooperBars, offset TXT_SETUPHELP_CooperBars
|
---|
| 162 | dw 6 dup (0)
|
---|
[224] | 163 | ELSE
|
---|
| 164 | dw 0, 0 ; added for removal of cooper-bars
|
---|
| 165 | dw 0, 0 ; added for removal of cooper-bars
|
---|
| 166 | ENDIF
|
---|
[8] | 167 |
|
---|
| 168 | SETUP_AdvancedOptions:
|
---|
| 169 | db 0 ; Where Current Item will get saved
|
---|
[40] | 170 | dw offset TXT_SETUPHELP_SubMenu ; Pointer to help info
|
---|
[8] | 171 | ; The Menu-Items start here...
|
---|
| 172 | dw offset SETUPMAGIC_ChangeBootMenu, offset CFG_BootMenuActive
|
---|
| 173 | dw offset TXT_SETUP_BootMenu, offset TXT_SETUPHELP_BootMenu
|
---|
| 174 | dw 6 dup (0)
|
---|
| 175 | dw offset SETUPMAGIC_EnableDisable, offset CFG_PartitionsDetect
|
---|
| 176 | dw offset TXT_SETUP_PartAutoDetect, offset TXT_SETUPHELP_PartAutoDetect
|
---|
| 177 | dw 6 dup (0)
|
---|
| 178 | dw 0, 0
|
---|
| 179 | dw 0, 0
|
---|
| 180 | ; Separator Line
|
---|
| 181 | dw 0, 0
|
---|
[40] | 182 | dw offset TXT_SETUP_SecurityOptions, 0
|
---|
[8] | 183 | dw offset SETUPMAGIC_EnableDisable, offset CFG_PasswordSetup
|
---|
| 184 | dw offset TXT_SETUP_PasswordedSetup, offset TXT_SETUPHELP_PasswordedSetup
|
---|
| 185 | dw 6 dup (0)
|
---|
| 186 | dw offset SETUPMAGIC_EnableDisable, offset CFG_PasswordSystem
|
---|
| 187 | dw offset TXT_SETUP_PasswordedSystem, offset TXT_SETUPHELP_PasswordedSystem
|
---|
| 188 | dw 6 dup (0)
|
---|
| 189 | dw offset SETUPMAGIC_EnableDisable, offset CFG_PasswordChangeBoot
|
---|
| 190 | dw offset TXT_SETUP_PasswordedChangeBoot, offset TXT_SETUPHELP_PasswordedBoot
|
---|
| 191 | dw 6 dup (0)
|
---|
| 192 | ; The Menu-Items of the right side start here...
|
---|
| 193 | dw offset SETUPMAGIC_EnableDisable, offset CFG_FloppyBootGetName
|
---|
| 194 | dw offset TXT_SETUP_GetFloppyName, offset TXT_SETUPHELP_GetFloppyName
|
---|
| 195 | dw 6 dup (0)
|
---|
| 196 | dw offset SETUPMAGIC_EnableDisable, offset CFG_FloppyBootGetTimer
|
---|
| 197 | dw offset TXT_SETUP_GetFloppyName2Sec, offset TXT_SETUPHELP_GetFloppyName2Sec
|
---|
| 198 | dw 6 dup (0)
|
---|
| 199 | dw offset SETUPMAGIC_EnableDisable, offset CFG_DetectVirus
|
---|
| 200 | dw offset TXT_SETUP_VirusDetect, offset TXT_SETUPHELP_VirusDetect
|
---|
| 201 | dw 6 dup (0)
|
---|
| 202 | dw offset SETUPMAGIC_EnableDisable, offset CFG_DetectStealth
|
---|
| 203 | dw offset TXT_SETUP_StealthDetect, offset TXT_SETUPHELP_StealthDetect
|
---|
| 204 | dw 6 dup (0)
|
---|
| 205 | dw offset SETUPMAGIC_EnableDisable, offset CFG_DetectVIBR
|
---|
| 206 | dw offset TXT_SETUP_VIBRdetect, offset TXT_SETUPHELP_VIBRdetect
|
---|
| 207 | dw 6 dup (0)
|
---|
| 208 | dw 0, 0
|
---|
| 209 | dw 0, 0
|
---|
| 210 | dw offset SETUPMAGIC_ChangeBIOSbootSeq, offset CFG_ResumeBIOSbootSeq
|
---|
| 211 | dw offset TXT_SETUP_ContinueBIOSboot, offset TXT_SETUPHELP_ContinueBIOSboot
|
---|
| 212 | dw 6 dup (0)
|
---|
| 213 |
|
---|
| 214 |
|
---|
| 215 | SETUP_ExtendedBootOptions:
|
---|
| 216 | db 0 ; Where Current Item will get saved
|
---|
[40] | 217 | dw offset TXT_SETUPHELP_SubMenu ; Pointer to help information
|
---|
[8] | 218 | ; The Menu-Items start here...
|
---|
[29] | 219 | ; [Linux support removed since v1.02]
|
---|
| 220 | ; dw offset SETUPMAGIC_ChangeLinuxKernelPart, offset CFG_LinuxKrnlPartition
|
---|
| 221 | ; dw offset TXT_SETUP_LinuxKernelPart, offset TXT_SETUPHELP_LinuxKernelPart
|
---|
| 222 | ; dw 6 dup (0)
|
---|
| 223 | ; dw offset SETUPMAGIC_ChangeLinuxDefaultKernel, offset CFG_LinuxDefaultKernel
|
---|
| 224 | ; dw offset TXT_SETUP_LinuxDefaultKernel, offset TXT_SETUPHELP_LinuxDefaultKrnl
|
---|
| 225 | ; dw 6 dup (0)
|
---|
| 226 | ; dw offset SETUPMAGIC_ChangeLinuxRootPart, offset CFG_LinuxRootPartition
|
---|
| 227 | ; dw offset TXT_SETUP_LinuxRootPart, offset TXT_SETUPHELP_LinuxRootPart
|
---|
| 228 | ; dw 6 dup (0)
|
---|
| 229 | dw offset SETUPMAGIC_EnableDisable, offset CFG_IgnoreLVM
|
---|
| 230 | dw offset TXT_SETUP_IgnoreLVM, offset TXT_SETUPHELP_IgnoreLVM
|
---|
[8] | 231 | dw 6 dup (0)
|
---|
[50] | 232 |
|
---|
| 233 | ;~ dw offset SETUPMAGIC_EnableDisable, offset CFG_ForceLBAUsage
|
---|
| 234 | ;~ dw offset TXT_SETUP_ForceLBAUsage, offset TXT_SETUPHELP_ForceLBAUsage
|
---|
| 235 | ;~ dw 6 dup (0)
|
---|
| 236 |
|
---|
| 237 | dw 0, 0 ; added for removal of force-lba
|
---|
| 238 | dw 0, 0 ; added for removal of force-lba
|
---|
| 239 |
|
---|
[29] | 240 | dw offset SETUPMAGIC_EnableDisable, offset CFG_ExtPartitionMShack
|
---|
| 241 | dw offset TXT_SETUP_ExtPartMShack, offset TXT_SETUPHELP_ExtPartMShack
|
---|
[8] | 242 | dw 6 dup (0)
|
---|
[50] | 243 |
|
---|
| 244 |
|
---|
| 245 |
|
---|
[8] | 246 | dw 0, 0
|
---|
| 247 | dw 0, 0
|
---|
| 248 | dw 0, 0
|
---|
| 249 | dw 0, 0
|
---|
[29] | 250 | dw 0, 0
|
---|
| 251 | dw 0, 0
|
---|
| 252 | dw 0, 0
|
---|
| 253 | dw 0, 0
|
---|
[8] | 254 | ; The Menu-Items of the right side start here...
|
---|
| 255 | dw 0, 0
|
---|
| 256 | dw 0, 0
|
---|
[29] | 257 | ; [Linux support removed since v1.02]
|
---|
[8] | 258 | dw 0, 0
|
---|
| 259 | dw 0, 0
|
---|
[29] | 260 | ; dw offset SETUP_EnterMenu_LinuxCommandLine, 0
|
---|
| 261 | ; dw offset TXT_SETUP_DefLinuxCmd, offset TXT_SETUPHELP_DefLinuxCmd
|
---|
[8] | 262 | dw 0, 0
|
---|
| 263 | dw 0, 0
|
---|
| 264 | dw 0, 0
|
---|
| 265 | dw 0, 0
|
---|
| 266 | dw 0, 0
|
---|
| 267 | dw 0, 0
|
---|
| 268 | dw 0, 0
|
---|
| 269 | dw 0, 0
|
---|
[29] | 270 | dw 0, 0
|
---|
| 271 | dw 0, 0
|
---|