| !Poster
| Version 1.60
|
<Obey$Dir>.IconSprDiy <Obey$Dir>.!Sprites
|IconSprites <Obey$Dir>.!Sprites
if "<System$Path>" = "" then Error 0 System resources cannot be found
|
RMEnsure ColourTrans 0.52 RMLoad System:Modules.Colours
RMEnsure ColourTrans 0.52 Error You need ColourTrans 0.52 or later
|
set clib$flag 0
RMensure SharedClibrary 3.75 set clib$flag 1
RMensure SharedClibrary 0 set clib$flag 0
if "<clib$flag>"="1" then Error !!! Old shared C library !!! An old version of the shared C library (clib) is resident in memory.
unset clib$flag
|  
| Install the shared C library (clib)
| -----------------------------------
|
RMensure SharedClibrary 3.75 RMload System:modules.clib
RMensure SharedClibrary 3.75 Error You need at least version 3.75 of the shared C library
|
| Install the floating point emulator
| -----------------------------------
|
RMensure FPEmulator 2.80 RMload System:modules.FPEmulator
RMensure FPEmulator 2.80 Error You need at least version 2.80 of the floating point emulator
|
| Grab extra memory for resources
Wimpslot -min 520K -max 520K
|
Set Alias$@RunType_CC3 Run <Obey$Dir>.!Run %%*0
Set Alias$@PrintType_CC3 Run <Obey$Dir>.!Run -Print %%*0
Set File$Type_CC3 Poster
|
Set File$Type_C4B CmprDraw
Set Alias$@RunType_C4B Run <Obey$Dir>.!Run %%*0
Set Alias$@PrintType_C4B Run <Obey$Dir>.!Run -Print %%*0
|
| If Poster being run then make it the default drawfile editor
Set Alias$@RunType_AFF Run <Obey$Dir>.!Run %%*0
Set Alias$@PrintType_AFF Run <Obey$Dir>.!Run -Print %%*0
Set File$Type_AFF DrawFile
|
If "<Poster$BorderPrefix>" = "" Then SetMacro Poster$BorderPath <Poster$BorderPrefix>.
If "<Poster$BorderPrefix>" = "" Then Set Poster$BorderPrefix <Obey$Dir>
|
Set Poster$Dir <Obey$Dir>
Wimpslot -min 448K -max 448K
|
Run <Poster$Dir>.!RunImage %*0
