BootRun,feb 2.34 KB
Newer Older
Neil Turton's avatar
Neil Turton committed
1 2
FX 247 2_10101010
FX 229 1
3

4 5
If "<Run$Path>" = ",%." Then Set Run$Path <Boot$Dir>.Library.,,%.
If "<Run$Path>" = "Resources:$.Library.,%.," Then Set Run$Path Resources:$.Library.,<Boot$Dir>.Library.,,%.
6
 
Robert Sprowson's avatar
Robert Sprowson committed
7 8
RMEnsure BootCommands 1.30 RMLoad System:Modules.BootCmds
RMEnsure BootCommands 1.30 Error This !Boot structure requires BootCommands version 1.30 or later
Robert Sprowson's avatar
Robert Sprowson committed
9 10 11
Set Boot$ProgressLoad -progress 0,50
Set Boot$ProgressRun  -progress 50,50
RMEnsure BootCommands 1.44 Unset Boot$Progress*
Robert Sprowson's avatar
Robert Sprowson committed
12 13

If Boot$OSVersion < 350 Then RMEnsure CMOSUtils  0.00 RMLoad System:Modules.CMOSUtils
Robert Sprowson's avatar
Robert Sprowson committed
14
If Boot$OSVersion < 500 Then RMEnsure AppPatcher 0.00 X RMLoad System:Modules.PatchApp
15

16 17 18 19
IfThere <Boot$Dir>.^.!Territory Then /<Boot$Dir>.^.!Territory

If Boot$OSVersion >= 350 Then WimpSlot -next 256K
If Boot$OSVersion >= 350 Then FreePool
Robert Sprowson's avatar
Robert Sprowson committed
20
AddToRMA 768K
Robert Sprowson's avatar
Robert Sprowson committed
21

Neil Turton's avatar
Neil Turton committed
22
Set Alias$BootLoad Echo %%*0|mLoad %%*0|mEcho |<11>|<23>|<8>|<5>|<6>|<0>|<0>|<0>|<0>|<0>|<0>|<11>|m
23
Set Alias$BootRun  Echo %%*0|mRun %%*0|mEcho |<11>|<23>|<8>|<5>|<6>|<0>|<0>|<0>|<0>|<0>|<0>|<11>|m
24
Set Alias$BootObey Obey -c %%*0
Neil Turton's avatar
Neil Turton committed
25
Set Alias$@LoadType_FEB BootObey %%*0
26
Set Alias$@LoadType_FF2 Error CMOS file found within !Boot (%%0)
Neil Turton's avatar
Neil Turton committed
27 28 29 30 31
Set Alias$@LoadType_FF8 /%%*0
Set Alias$@LoadType_FF9 IconSprites %%*0
Set Alias$@LoadType_FFA RMLoad %%*0
Set Alias$@LoadType_FFB BASIC -quit %%*0
Set Alias$@LoadType_FFC /%%*0
32

33
/<Boot$Dir>.Utils.HOn
Robert Sprowson's avatar
Robert Sprowson committed
34 35 36

/<Boot$Dir>.Utils.SetChoices
BootObey Choices:Boot.PreDesktop
37

38
If "<Wimp$ScrapDir>" = "" Then IfThere <Boot$Dir>.^.!Scrap Then /<Boot$Dir>.^.!Scrap
Robert Sprowson's avatar
Robert Sprowson committed
39
If "<Wimp$ScrapDir>" = "" Then IfThere <BootResources$Dir>.!Scrap Then /<BootResources$Dir>.!Scrap
40

41 42
IfThere <BootResources$Dir>.!Internet Then /<BootResources$Dir>.!Internet.!Boot
If ("<InetDBase$Path>" <> "") AND ("<Inet$MimeMappings>" = "") Then Set Inet$MimeMappings InetDBase:MimeMap
Robert Sprowson's avatar
Robert Sprowson committed
43 44
RMEnsure MimeMap 0.00 X RMReinit MimeMap
RMEnsure MimeMap 0.00 X RMLoad System:Modules.Network.MimeMap
45

Robert Sprowson's avatar
Robert Sprowson committed
46 47
Do Repeat BootLoad <Boot$ToBeLoaded> -files <Boot$ProgressLoad>
Do Repeat BootRun  <Boot$ToBeLoaded> -directories <Boot$ProgressRun>
48

Neil Turton's avatar
Neil Turton committed
49 50 51 52 53 54 55 56 57
Unset Alias$@LoadType_FEB
Unset Alias$@LoadType_FF8
Set   Alias$@LoadType_FF9 SLoad %%0
Set   Alias$@LoadType_FFA RMLoad %%*0
Set   Alias$@LoadType_FFB Basic -load |"%%0|" %%*1
Unset Alias$@LoadType_FFC
Unset Alias$BootLoad
Unset Alias$BootRun
Unset Alias$BootObey
58
Unset Boot$Remote
Robert Sprowson's avatar
Robert Sprowson committed
59
Unset Boot$Progress*
60

61 62
AppSize 512000K

Neil Turton's avatar
Neil Turton committed
63 64 65
FX 247 1
FX 229 0
/Choices:Boot.Desktop