Set AMPLE$Dir <Obey$Dir>
Set AMPLE$Path <Ample$Dir>.Library.

| From AMPLE 0.25, it is possible to run AMPLE without the AMPLESupport
| module being in memory.
|
| To do this, set the variable AMPLE$Module to 0. This stops this !Run
| file from starting up AMPLESupport.
|
| Watch out! If AMPLESupport is already in memory, then AMPLE will 
| always use it, even if AMPLE$Module is set to zero. AMPLE itself does
| not read the value of AMPLE$Module.

Set AMPLE$Module 0

RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions
|RMEnsure UtilityModule 4.00 RMEnsure CallASWI 0.00 RMLoad System:modules.CallASWI
|RMEnsure UtilityModule 4.00 RMEnsure CallASWI 0.00 Error You need CallASWI to run !AMPLE on RISC OS 3.1
|
| This is required if you have not downloaded the new 32-bit modules
| from RISC OS Ltd
|
RMEnsure SharedCLibrary 5.25 RMLoad <AMPLE$Dir>.Modules.CLib
RMEnsure SharedCLibrary 5.25 Error You need a later SharedCLibrary to run !AMPLE
RMEnsure UtilityModule 3.50 RMEnsure 310Support 0.00 RMLoad System:modules.310Support.ThreeTen
RMEnsure UtilityModule 3.50 RMEnsure 310Support 0.00 Error You need 310Support to run !AMPLE
RMEnsure ColourPicker 0.00 RMLoad System:modules.Picker
RMEnsure ColourPicker 0.00 Error You need ColourPicker to run !AMPLE
RMEnsure FilterManager 0.09 RMLoad System:modules.FilterMgr
RMEnsure FilterManager 0.09 Error You need Filter Manager 0.09 or later
RMEnsure BorderUtils 0.02 RMEnsure WindowManager 3.17 RMLoad System:modules.BorderUtil
RMEnsure BorderUtils 0.02 RMEnsure WindowManager 3.17 Error You need BorderUtils 0.02 with this version of WindowManager
RMEnsure Toolbox    0.00  RMLoad System:modules.toolbox.toolbox
RMEnsure Toolbox    1.23  Error You need toolbox 1.23 or later to run !AMPLE
RMEnsure Window     0.00  RMLoad System:modules.toolbox.window
RMEnsure Window     1.15  Error You need window 1.15 or later to run !AMPLE
RMEnsure Menu       0.00  RMLoad System:modules.toolbox.menu
RMEnsure Menu       0.15  Error You need menu 0.15 or later to run !AMPLE
RMEnsure Iconbar    0.00  RMLoad System:modules.toolbox.iconbar
RMEnsure Iconbar    1.08  Error You need iconbar 1.08 or later to run !AMPLE
RMEnsure ProgInfo   0.00  RMLoad System:modules.toolbox.proginfo
RMEnsure ProgInfo   0.05  Error You need proginfo 0.05 or later to run !AMPLE
RMEnsure FileInfo   0.00  RMLoad System:modules.toolbox.fileinfo
RMEnsure FileInfo   0.05  Error You need fileinfo 0.05 or later to run !AMPLE
RMEnsure SaveAs     0.00  RMLoad System:modules.toolbox.saveas
RMEnsure SaveAs     0.03  Error You need saveas 0.03 or later to run !AMPLE
RMEnsure FontDbox   0.00  RMLoad System:modules.toolbox.fontdbox
RMEnsure FontDbox   0.03  Error You need fontdbox 0.03 or later to run !AMPLE
RMEnsure FontMenu   0.00  RMLoad System:modules.toolbox.fontmenu
RMEnsure FontMenu   0.11  Error You need fontmenu 0.11 or later to run !AMPLE
RMEnsure ColourDbox 0.00  RMLoad System:modules.toolbox.colourdbox
RMEnsure ColourDbox 0.03  Error You need colourdbox 0.03 or later to run !AMPLE
RMEnsure ColourMenu 0.00  RMLoad System:modules.toolbox.colourmenu
RMEnsure ColourMenu 0.10  Error You need colourmenu 0.10 or later to run !AMPLE
RMEnsure Scale      0.00  RMLoad System:modules.toolbox.scale
RMEnsure Scale      0.03  Error You need scale 0.03 or later to run !AMPLE
RMEnsure PrintDbox  0.00  RMLoad System:modules.toolbox.printdbox
RMEnsure PrintDbox  0.03  Error You need printdbox 0.10 or later to run !AMPLE

If <AMPLE$Module> = 1 Then RMEnsure AMPLESupport 0.30 RMLoad <AMPLE$Dir>.Modules.AmpMod
If <AMPLE$Module> = 1 Then RMEnsure AMPLESupport 0.30 Error You need AMPLESupport 0.30 or later to run !AMPLE

IconSprites <AMPLE$Dir>.!Sprites
WimpSlot -min 512K -max 512K
Run <AMPLE$Dir>.!RunImage
