| !GPDriver2.!Launch
|
| In order to get here, the !Boot file must have been executed, so
| there is no need to do any !Boot-type activities here
|
RMEnsure UtilityModule 3.50 Error "GPDriver2 is only suitable for use with RISC OS 3.50 or later versions"
|
| We still re-read the sprites, since the screen mode could have changed
| We can use 256 colour sprites under RISC OS 4 and above only, so detect RO4.
Set GPDriver2$OS4 "True"
RMEnsure UtilityModule 4.00 Set GPDriver2$OS4 "False"
If "<GPDriver2$OS4>" = "False" Then IconSprites <Obey$Dir>.!Sprites Else IconSprites <Obey$Dir>.4Sprites
Unset GPDriver2$OS4
|
RMEnsure Toolbox  0.00 RMLoad System:Modules.Toolbox.Toolbox
RMEnsure Toolbox  0.00 Error You need the Toolbox module to run GPDriver2
RMEnsure Window   0.00 RMLoad System:Modules.Toolbox.Window
RMEnsure Toolbox  0.00 Error You need the Window module to run GPDriver2
RMEnsure ProgInfo 0.00 RMLoad System:Modules.Toolbox.ProgInfo
RMEnsure Toolbox  0.00 Error You need the ProgInfo module to run GPDriver2
RMEnsure Menu     0.00 RMLoad System:Modules.Toolbox.Menu
RMEnsure Toolbox  0.00 Error You need the Menu module to run GPDriver2
|
Set GutenprintXML$Path <GPDriver2$Dir>.xml.
|
WimpSlot -min 900k -max 900k
|
| In order to capture diagnostic output after a crash to a file named 'err' inside !GPDriver2,
| remove the '|' character from the start of the last but one line AND add a '|' character to
| the start of the final line instead. To revert back to the original state, remove the '|'
| character from the final line and add one to the start of the last but one line instead.
|/GPDriver2:gpdriver2 %*0 2><GPDriver2$Dir>.err
/GPDriver2:gpdriver2 %*0