IconSprites <Obey$Dir>.!Sprites
|
|
If "<System$Path>" = "" then Error 0 System resources cannot be found
|
RMEnsure UtilityModule 3.10 Error This application requires RISC OS 3.10 or later
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 Error This application requires CallASWI 0.02 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.43 Error This application requires SharedCLibrary 5.43 or later
|
|
Set ConvImgs$Dir <Obey$Dir>
Run <ConvImgs$Dir>.Resources.Resfind ConvImgs
|
|
| unset the sys vars to ensure debug is off
unset ConvImgs$Debug
unset ConvImgs$Logging
unset ConvImgs$Logtype
|
| now set vars to action as needed or leave unset
| To use ConvImgs in debug mode
| Following to use debug to spool with backtrace
| set ConvImgs$Debug 1
| Following to use logging to e.g. Reporter
|set ConvImgs$Logging 1
|set ConvImgs$Logtype 2
|
| If we are on RISC OS 5 we use the app wimp slot for all memory claims
| For other OS versions we use dynamic area for the flex stack
|
SetEval ConvImgs$Memory -1
RMEnsure UtilityModule 6.00 SetEval ConvImgs$Memory -2
If <ConvImgs$Memory> = -2 Then RMEnsure UtilityModule 5.00 SetEval ConvImgs$Memory -1
|
WimpSlot -min 2000K -max 2000K
|
Run "<ConvImgs$Dir>.!RunImage"
