| >!Run for PrivateEye
| by David Thomas,  1999-2022

Obey <Obey$Dir>.!Boot

Set Alias$PrivateEyeRMLoad IfThere %%*0 Then RMLoad %%*0

RMEnsure UtilityModule  3.50 Error PrivateEye requires RISC OS 3.5 or later

RMEnsure WindowManager  3.98 Error PrivateEye requires WindowManager 3.98 or later ('nested WIMP')

RMEnsure UtilityModule  3.70 RMEnsure CallASWI 0.02 PrivateEyeRMLoad System:Modules.CallASWI
RMEnsure UtilityModule  3.70 RMEnsure CallASWI 0.02 Error PrivateEye requires CallASWI 0.02 or later

RMEnsure FPEmulator     4.03 PrivateEyeRMLoad System:Modules.FPEmulator
RMEnsure FPEmulator     4.03 Error PrivateEye requires FPEmulator 4.03 or later

RMEnsure SharedCLibrary 5.17 PrivateEyeRMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.34 Error PrivateEye requires SharedCLibrary 5.34 or later

RMEnsure ColourPicker   0.31 PrivateEyeRMLoad System:Modules.Picker
RMEnsure ColourPicker   0.31 Error PrivateEye requires ColourPicker 0.31 or later

RMEnsure SpriteExtend   0.99 PrivateEyeRMLoad System:Modules.SpriteExt
RMEnsure SpriteExtend   0.99 Error PrivateEye requires SpriteExtend 0.99 or later

RMEnsure DrawFile       1.30 PrivateEyeRMLoad System:Modules.DrawFile
RMEnsure DrawFile       1.30 Error PrivateEye requires DrawFile 1.30 or later

RMEnsure DragAnObject   0.02 PrivateEyeRMLoad System:Modules.DragAnObj
RMEnsure DragAnObject   0.02 Error PrivateEye requires DragAnObject 0.02 or later

RMEnsure Tinct          0.14 PrivateEyeRMLoad System:Modules.Tinct
RMEnsure Tinct          0.14 Error PrivateEye requires Tinct 0.14 or later

RMEnsure AppEngine      0.16 PrivateEyeRMLoad <PrivateEye$Dir>.AppEngine
RMEnsure AppEngine      0.16 Error PrivateEye requires AppEngine 0.16 or later

Unset Alias$PrivateEyeRMLoad

| PrivateEye by default allocates workspace memory from a dynamic area. If
| you uncomment the following line it will enable the use of wimp slots
| larger than 28,640K on suitable systems. This allows for allocations of up
| to 512M on RISC OS 5.
|
| Set PrivateEye$Flex WimpSlot
|
| However not all of PrivateEye's internals can yet cope with the sliding
| heap. You are advised to also boost the wimp slot so that the malloc pool
| has a reasonable reserve to itself and never needs to shunt the flex heap
| forwards.

| When using a dynamic area the following system variable can either be set
| to zero to use the system default dynamic area limit, or a megabyte value. 
| 
Set PrivateEye$DALimit 0

WimpSlot -min 480K -max 480K

Run <PrivateEye$Dir>.Resources.PhotoCheck

Run <PrivateEye$Dir>.Resources.ResFind PrivateEye

Run <PrivateEye$Dir>.!RunImage %*0
