source: trunk/bootcode/setup/menus.asm

Last change on this file was 224, checked in by Ben Rietbroek, 8 years ago

Removed 'Cooper Bars' option from the SETUP [v1.1.3-testing]

As can be read in 'special/fx.asm' around line 26:
; There you go. Some nice old-school demo coder effects :)
; If you rip this code, I will ./ your ass. =]
this removal may have severe consequences for me.

So, if no new AiR-BOOT releases appear, then you know I have been
'./'-ted, which most probably will be something completely different
from being 'slash-dotted' ... ;)

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.2-manual.pdf

File size: 13.7 KB
Line 
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;
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
57IFDEF MODULE_NAMES
58DB 'MENUS',0
59ENDIF
60
61LocMENU_LenOfMenuPtrBlock equ 8
62LocMENU_LenOfItemPack equ 12
63LocMENU_RoutinePtr equ 0
64LocMENU_VariablePtr equ 2
65LocMENU_ItemNamePtr equ 4
66LocMENU_ItemHelpPtr equ 6
67LocMENU_ItemPack equ 8 ; only if VariablePtr>0
68
69SETUP_MainMenu:
70 db 0 ; Where Current Item will get saved
71 dw offset TXT_SETUPHELP_Main ; Pointer to help information
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
87
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
104SETUP_BasicOptions:
105 db 0 ; Where Current Item will get saved
106 dw offset TXT_SETUPHELP_SubMenu ; Pointer to help info
107 ; The Menu-Items start here...
108 dw offset SETUPMAGIC_ChangeDefaultSelection, offset CFG_PartDefault
109 dw offset TXT_SETUP_DefaultSelection, offset TXT_SETUPHELP_DefaultSelection
110 dw 6 dup (0)
111 ; ATTENTION: ChangeDefaultSelection is redrawn hardcoded in
112 ; SETUPMAGIC_ChangeFloppyDisplay.
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...
132 dw offset SETUPMAGIC_ChangeFloppyDisplay, offset CFG_IncludeFloppy
133 dw offset TXT_SETUP_IncludeFloppy, offset TXT_SETUPHELP_IncludeFloppy
134 dw 6 dup (0)
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
145 dw offset SETUPMAGIC_EnableDisable, offset CFG_ProtectMBR
146 dw offset TXT_SETUP_MbrProtection, offset TXT_SETUPHELP_MbrProtection
147 dw 6 dup (0)
148 dw offset SETUPMAGIC_EnableDisable, offset CFG_IgnoreWriteToMBR
149 dw offset TXT_SETUP_IgnoreMbrWrites, offset TXT_SETUPHELP_IgnoreMbrWrites
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)
156
157; While the FX-module is excluded from newer versions, we want to retain
158; the option of enabling it.
159IFDEF FX_ENABLED
160 dw offset SETUPMAGIC_EnableDisable, offset CFG_CooperBars
161 dw offset TXT_SETUP_CooperBars, offset TXT_SETUPHELP_CooperBars
162 dw 6 dup (0)
163ELSE
164 dw 0, 0 ; added for removal of cooper-bars
165 dw 0, 0 ; added for removal of cooper-bars
166ENDIF
167
168SETUP_AdvancedOptions:
169 db 0 ; Where Current Item will get saved
170 dw offset TXT_SETUPHELP_SubMenu ; Pointer to help info
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
182 dw offset TXT_SETUP_SecurityOptions, 0
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
215SETUP_ExtendedBootOptions:
216 db 0 ; Where Current Item will get saved
217 dw offset TXT_SETUPHELP_SubMenu ; Pointer to help information
218 ; The Menu-Items start here...
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
231 dw 6 dup (0)
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
240 dw offset SETUPMAGIC_EnableDisable, offset CFG_ExtPartitionMShack
241 dw offset TXT_SETUP_ExtPartMShack, offset TXT_SETUPHELP_ExtPartMShack
242 dw 6 dup (0)
243
244
245
246 dw 0, 0
247 dw 0, 0
248 dw 0, 0
249 dw 0, 0
250 dw 0, 0
251 dw 0, 0
252 dw 0, 0
253 dw 0, 0
254 ; The Menu-Items of the right side start here...
255 dw 0, 0
256 dw 0, 0
257; [Linux support removed since v1.02]
258 dw 0, 0
259 dw 0, 0
260; dw offset SETUP_EnterMenu_LinuxCommandLine, 0
261; dw offset TXT_SETUP_DefLinuxCmd, offset TXT_SETUPHELP_DefLinuxCmd
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
270 dw 0, 0
271 dw 0, 0
Note: See TracBrowser for help on using the repository browser.