| RISC OS Loader for !WebGallery
| Written by Paul Vigay (C) 2003-2008
|
If "<Boot$Dir>" = "" Then Error No !Boot application has been run.
If "<Choices$Write>" = "" Then Error No !Boot application has been run.
If "<ChangeFSI$Dir>" = "" Then Error ChangeFSI has not been seen by the filer yet.
IfThere "<ChangeFSI$Dir>.CFSIjpeg" Then Else Error ChangeFSI appears to be incomplete. 'CFSIjpeg' not found.
If "<Alias$ChangeFSI>" = "" Then Set Alias$ChangeFSI <ChangeFSI$Dir>.ChangeFSI %%*0
|
If "<WebGallery$Running>" <> "" Then Error WebGallery is already running.
|
Set ABCLib 1
RMEnsure ABCLibrary    0.00 Set ABCLib 0
|  ABCLib = 0 if not already loaded
If ABCLib = 0 Then RMEnsure ABClibrary 4.14 RMLoad System:modules.ABClib 
If ABCLib = 0 Then RMEnsure ABCLibrary 4.14 Error The version of ABCLib installed in your !System is too old. WebGallery Needs ABCLib 4.14 or later 
If ABCLib = 1 Then RMEnsure ABCLibrary 4.14 Error You are already running a version of ABCLib which is too old. WebGallery Needs ABCLib 4.14 or later 
|
Set WebGallery$Dir <Obey$Dir>
Iconsprites <WebGallery$Dir>.!Sprites
|
Wimpslot -min 560k -max 560k
Run <WebGallery$Dir>.!RunImage %*0
