|
| Run file for PipeDream 4.62.02 (05 Mar 2023)
|
Set PipeDream$Dir <Obey$Dir>
|
Set PipeDream$Help <PipeDream$Dir>.!Help
Set PipeDream$Version 4.62.02
Set PipeDream$Web https://croftnuisk.co.uk/coltsoft/pipedream/
Set PipeDream$Title PipeDream
Set PipeDream$Description Integrated spreadsheet and word processor
Set PipeDream$Publisher Colton Software
|
Set File$Type_DDE PDream
Set Alias$@RunType_DDE Run <PipeDream$Dir>.!Run %%*0
Set Alias$@PrintType_DDE Run <PipeDream$Dir>.!Run -Print %%*0
|
Set File$Type_A77 PDChart
Set Alias$@RunType_A77 Run <PipeDream$Dir>.!Run %%*0
|
Set File$Type_D21 PDCmdFil
Set Alias$@RunType_D21 Run <PipeDream$Dir>.!Run -Command %%*0
|
If "<File$Type_DFE>"="" Then Set File$Type_DFE CSV
|
If "<File$Type_F0D>"="" Then Set File$Type_F0D TSV
|
| PipeDream (4.59 on) can be set up to be the default handler for any file
| type that it can import; see !Boot for details on how to do this
|
RMEnsure UtilityModule 3.10 Error 0 PipeDream needs RISC OS 3.10 or later
|
If "<Boot$OSVersion>"="" Then RMEnsure UtilityModule 3.50 Error 0 Please install the Universal !Boot before attempting to run PipeDream on older systems. !Boot may be obtained from the RISC OS Open website
If "<Boot$OSVersion>"="" Then Error 0 PipeDream needs Boot$OSVersion to be set
|
If (Boot$OSVersion>=500 AND Boot$OSVersion<600) Then IconSprites <PipeDream$Dir>.!Sprites Else IconSprites <PipeDream$Dir>.!SpritesR4
|
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 Error 0 SharedCLibrary needs CallASWI 0.02 or later. An updated 32-bit !System may be obtained from the RISC OS Open website
|
| Ensure we have the shared C library and determine its vintage
| NB Don't load a newer version over an older one that may be in RAM
|
Set PipeDream$CLibLoaded 1
RMEnsure SharedCLibrary 0.00 Set PipeDream$CLibLoaded 0
If PipeDream$CLibLoaded=1 Then RMEnsure SharedCLibrary 5.45 Error 0 PipeDream needs SharedCLibrary 5.45 or later but an earlier version is already running. An updated 32-bit !System may be obtained from the RISC OS Open website
Unset PipeDream$CLibLoaded
|
RMEnsure SharedCLibrary 5.45 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.45 Error 0 PipeDream needs SharedCLibrary 5.45 or later. An updated 32-bit !System may be obtained from the RISC OS Open website
|
RMEnsure ColourPicker 0.00 RMLoad System:Modules.Picker
RMEnsure ColourPicker 0.00 Error 0 PipeDream needs ColourPicker 0.00 or later. An updated 32-bit !System may be obtained from the RISC OS Open website
|
RMEnsure ColourTrans 0.52 RMLoad System:Modules.Colours
RMEnsure ColourTrans 0.52 Error 0 PipeDream needs ColourTrans 0.52 or later. An updated 32-bit !System may be obtained from the RISC OS Open website
|
| If you have no need to render PipeDream Charts or other Drawfiles you can comment these out for pre-RISC OS 3.6 systems
RMEnsure Drawfile 1.30 RMLoad System:Modules.Drawfile
RMEnsure Drawfile 1.30 Error 0 PipeDream needs Drawfile 1.30 or later. An updated 32-bit !System may be obtained from the RISC OS Open website
|
RMEnsure FPEmulator 4.10 RMLoad System:Modules.FPEmulator
RMEnsure FPEmulator 4.10 Error 0 PipeDream needs FPEmulator 4.10 or later. An updated 32-bit !System may be obtained from the RISC OS Open website
|
RMEnsure BASIC 0.00 Error 0 PipeDream's Loader needs BASIC. Is it unplugged?
|
If "<Choices$Write>"="" Then Error 0 PipeDream needs Choices$Write to be set
|
| Ensure that the Choices directory is populated with some initial data
IfThere <Choices$Write>.PipeDream.Dicts.UserDict Then Else Obey <PipeDream$Dir>.uChoices.DoCopy
|
WimpSlot -min 32K -max 32K
Run <PipeDream$Dir>.Resources.Neutral.RISC_OS.Loader -id PipeDream -ver "4.62.02" -isodate 20230305
|
| PipeDream$Path is set appropriately by the Loader
| It is used to locate vital resources needed to run PipeDream e.g. messages, sprites and window templates
| and to locate most data presented to the PipeDream user e.g. document templates, dictionaries, chart markers
| PipeDream$TemplatesPath is also set appropriately by the Loader - it does not contain fallback locations
|
| If a PipeDream$UserPath has been set, prepend PipeDream$Path with that
If "<PipeDream$UserPath>"<>"" Then Set PipeDream$Path <PipeDream$UserPath>,<PipeDream$Path>
If "<PipeDream$UserPath>"<>"" Then Set PipeDream$TemplatesPath <PipeDream$UserPath>.Templates.,<PipeDream$TemplatesPath>
|
| On systems with only a small WimpSlot for application & its data, allow dynamic area to be used (limit in MB) 
If (Boot$OSVersion<500) OR (Boot$OSVersion>=600) Then Set PipeDream$RunOptions <PipeDream$RunOptions> --dynamic-area-limit=256
|
| The higher value is specified as the minimum first so that there is sufficient memory to get PipeDream fully running
WimpSlot -min 892K
| The lower value is specified as the maximum last so that becomes the initial slot that PipeDream is started with
WimpSlot -max 748K
| Equivalent to Run PipeDream:RISC_OS.ImageSlot <PipeDream$Dir>.!RunImage 26K 144K
|
Run <PipeDream$Dir>.!RunImage %*0