| PHOTODESK !Run file
| ===================
| (c) spacetech 1996, 4D 2008

| Temporarily not compatible with the ARM2 or ARM3 so deny RISC OS 3.1
RMEnsure UtilityModule 3.50 Error This application is only suitable for use with RISC OS 3.50 or later versions
IF "<Wimp$ScrapDir>"="" THEN Error The !Scrap application needs to be available on your hard disc before this program will run.

Set P$D <Obey$Dir>
WimpSlot -min 32K -max 32K

Run <Photodesk$Dir>.TaskEnsure Photodesk
Run <PhotoDesk$Dir>.TaskEnsure PhDeskDMO

Set Photodesk$Dir <Obey$Dir>
Set Photodesk$VMDir <Wimp$ScrapDir>
|Set PhotoDesk$VMDir <PhotoDesk$Dir>

|For networked or locked machines with resources held in !PDres...
|Set Photodesk$Resources <PDres$Dir>.Resources

|For resources held within !Photodesk...
Set Photodesk$Resources <Photodesk$Dir>.Resources

Set Photodesk$Options -s 1

| Maximum size of the Image Cache dynamic area in MB
| if not overloaded from PD preferences.
| 0 for no DA; Image Cache in Wimp slot
Set PhotoDesk$DynamicAreaSize 256

IF "<TWAIN$Path>"<>"" THEN RMLoad <Photodesk$Dir>.Modules.TwainPDIF


Run <Photodesk$Dir>.ResrcBoot
Iconsprites <Photodesk$Dir>.!Sprites22
Iconsprites <Photodesk$Dir>.Icons

|Ensure there are no Mods left from an interrupted session (dt 2008)
IFthere <Photodesk$VMDir>.Photodesk2.Clipboard! Then Obey <Photodesk$Dir>.KillPDmods

RMEnsure UtilityModule  4.42 RMEnsure CallASWI 0.03 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule  4.42 RMEnsure CallASWI 0.03 Error This application requires CallASWI 0.03 or later
RMEnsure FPEmulator     4.03 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator     4.03 Error This application requires FPEmulator 4.03 or later
RMEnsure SharedCLibrary 5.17 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.34 Error This application requires SharedCLibrary 5.34 or later
RMEnsure PhotoCD        0.23 RMLoad <Photodesk$Dir>.Modules.PhotoCD
RMEnsure ColourPicker   0.14 RMLoad <Photodesk$Dir>.Modules.Picker
RMLoad <Photodesk$Dir>.Modules.Photodesk

WimpSlot -min 1096K -max 1096K

Run <Photodesk$Dir>.!runimage %*0
