| !Run file for !PC v3.06 application
|

| Set our variables + icons up, make sure we're running on RISC OS 3.5+
|
RMEnsure UtilityModule  3.50 Error This application is only suitable for use with RISC OS 3.50 or later
Set Diva$Dir <Obey$Dir>
IconSprites <Diva$Dir>.!Sprites
CDir <Wimp$ScrapDir>.PC

| The following lines are for detection of RC5PC
|
SetEval RC5PCexists 1
RMEnsure RC5PC 0.90 SetEval RC5PCexists 0                  
IF RC5PCexists Then RC5PC off
IF RC5PCexists Then Run Choices:Boot.PreDesk.PCSleep.PCSleep

| Check we're not already running
|
Wimpslot -min 8k -max 8k
Run <Diva$Dir>.CheckDiva
If "<Diva$Running>"<>"" Then Error 0 <Diva$Running>

| Check for Toolbox modules
|
Set Alias$CheckToolbox RMEnsure %%0 0.00 RMLoad System:Modules.Toolbox.%%0|MRMEnsure %%0 %%1 Error 0 Your %%0 module is out of date; please install the Toolbox update from your PCPro 3 installation disc.
CheckToolbox Toolbox  1.43
CheckToolbox IconBar  1.18
CheckToolbox Menu     0.32
CheckToolbox ProgInfo 0.14
CheckToolbox SaveAs   0.15
CheckToolbox Window   1.54
Unset Alias$CheckToolbox

| Choose configuration
| If you wish to specify Diva$ConfigFile elsewhere, then uncomment the next
| three lines, and comment out the 'Run <Diva$Dir>.!ChooseCfg' line below them.
| However this option is not compatible with !PC v2.13 which sets Diva$ConfigFile 
| to point to itself.
|If "<Diva$ConfigFile>"="" Then Set Diva$ConfigFile <Diva$Dir>.x
|IfThere <Diva$ConfigFile> Then | Else UnSet Diva$ConfigFile
|If "<Diva$ConfigFile>"="" Then Run <Diva$Dir>.!ChooseCfg

Run <Diva$Dir>.!ChooseCfg
If "<Diva$ConfigFile>"="" Then Obey

| Load support code
|
Unset Diva$Error
Wimpslot -min 32k -max 32k
Wimptask <Diva$Dir>.LoadAuto
If "<Diva$Error>"<>"" Then Error 0 <Diva$Error>

Filer_Run <Diva$Dir>.Start
