| To install to HD:
| 1. Copy !BirdOfWar from disc 1 to your HD
| 2. Open !BirdOfWar on your HD via SHIFT-DOUBLE CLICK
| 3. Copy !KeyDef from disc 1 to the !BirdOfWar directory
| 4. Copy the contents of discs 2 to 7 to the !BirdOfWar directory
| 5. Copy the disc 1 floppy image into the !BirdOfWar folder and rename it
|    F1004201
| 6. Replace the contents of !BirdOfWar.!Run with:
|  ADFBootFloppy F1004201

IF "<Obey$Dir>"="@" THEN Set Obey$Dir ADFS::BirdsOfWar.$.!BirdOfWar

IfThere <obey$dir>.F1004201 THEN ADFMount <obey$dir>.F1004201
IfThere <obey$dir>.!BOW_Sound.!Boot THEN Set BOWSound$dir <obey$dir>.!BOW_Sound
IfThere <obey$dir>.!Maps1.!Boot THEN Set ObjMap1$dir <obey$dir>.!Maps1
IfThere <obey$dir>.!Maps2.!Boot THEN Set ObjMap2$dir <obey$dir>.!Maps2
IfThere <obey$dir>.!Maps3.!Boot THEN Set ObjMap3$dir <obey$dir>.!Maps3
IfThere <obey$dir>.!Maps4.!Boot THEN Set ObjMap4$dir <obey$dir>.!Maps4
IfThere <obey$dir>.!Missions1.!Boot THEN Set Mission1$dir <obey$dir>.!Missions1
IfThere <obey$dir>.!Missions2.!Boot THEN Set Mission2$dir <obey$dir>.!Missions2
IfThere <obey$dir>.!Missions3.!Boot THEN Set Mission3$dir <obey$dir>.!Missions3
IfThere <obey$dir>.!Missions4.!Boot THEN Set Mission4$dir <obey$dir>.!Missions4
IfThere <obey$dir>.!Models1.!Boot THEN Set FlightMod1$dir <obey$dir>.!Models1
IfThere <obey$dir>.!Models2.!Boot THEN Set FlightMod2$dir <obey$dir>.!Models2
IfThere <obey$dir>.!Models3.!Boot THEN Set FlightMod3$dir <obey$dir>.!Models3
IfThere <obey$dir>.!Models4.!Boot THEN Set FlightMod4$dir <obey$dir>.!Models4
IfThere <obey$dir>.!Objects.!Boot THEN Set ObjLib$dir <obey$dir>.!Objects

IF ADFFS$CPUID<&A10 THEN WimpSlot -min 1420K -max 1420K ELSE WimpSlot -min 3420K -max 3420K
ScreenSize 160
RMAFree 200
IF ADFFS$OSVersion>=&35000 THEN RMEnsure QTMTracker 1.45 RMLoad ADFFS:trackers.QTMModule
IF ADFFS$OSVersion>=&35000 THEN RMEnsure DesktopTracker 2.03 RMLoad ADFFS:trackers.DTT
IF ADFFS$OSVersion>=&35000 THEN ADFEmulateRISCOS 3.11

Set FlightSim$dir <obey$dir>
Set FlightPix$dir <obey$dir>
Set FlightInfo$dir <obey$dir>

FX 200,1,0
FX 229,1

RMEnsure SharedCLibrary 3.50 If "<System$Path>" = "" Then Error 0 System resources cannot be found
SetEval clib$flag 1
RMEnsure SharedCLibrary 0 SetEval clib$flag 0
RMEnsure SharedCLibrary 3.50 If clib$flag Then Error 0 Old C library installed Else RMLoad System:Modules.Clib
RMEnsure SharedCLibrary 3.50 Error You need Clib 3.50 or later
UnSet clib$flag

RMEnsure FPEmulator 2.80 If "<System$Path>" = "" Then Error 0 System resources cannot be found
RMEnsure FPEmulator 2.80 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 2.80 Error You need FPEmulator 2.80 or later

IF ADFFS$CPUID>=&A10 THEN GOARM3JIT 0
RMEnsure LZWFiler 0.00 RMLoad <FlightSim$Dir>.LZWFiler
Pointer 0
IconSprites <FlightSim$Dir>.Pix.ptr_def
WimpPalette <FlightSim$Dir>.Pix.ptr_pal

ECHO <22><15>
RUN <FlightSim$Dir>.!Loader
ECHO <23><1><0><0><0><0><0><0><0><0>

RMEnsure DesktopTracker 1.10 RMLoad <FlightSim$Dir>.Playmod -ac
RMEnsure DesktopTracker 1.10 Error You need DesktopTracker version 1.10 or greater

| Fix Page Zero access bugs
IF ADFFS$CPUID>=&A10 THEN JITMEMORYA P 2EAF8 E3A01000 E24D1028
IF ADFFS$CPUID>=&A10 THEN JITMEMORYA P 2F4BC E3A01000 E24D1028
IF ADFFS$CPUID>=&A10 THEN JITMEMORYA P 2F518 E3A01000 E24D1028

| Fix Bad Vector Release when run from HD
IF ADFFS$CPUID>=&A10 THEN IfThere <obey$dir>.F1004201 THEN JITMEMORYA P 1F5F4 EF00001F E1A00000
IF ADFFS$CPUID>=&A10 THEN IfThere <obey$dir>.F1004201 THEN JITMEMORYA P 1F62C EF000020 E1A00000

Set BOW$log 0
<FlightSim$Dir>.!RunImage

RMKill LZWFiler
IF ADFFS$CPUID>=&A10 THEN GOARM3JIT
IF ADFFS$OSVersion>=&35000 THEN ADFEmulateRISCOS
RMKill DesktopTracker
RMKill QTMTracker