2004-07-19 22:06:16 +04:00
|
|
|
<Obey$Dir>.!Boot
|
|
|
|
|
|
|
|
| Can't run more than one copy of NCNetSurf at once.
|
2004-07-20 21:32:13 +04:00
|
|
|
If "<NetSurf$Running>" = "yes" Then Error NCNetSurf is already running.
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Check to see if we are running on RISCOS or NCOS.
|
|
|
|
Set NetSurf$Desktop no
|
|
|
|
RMEnsure OSVersion 0.00 Set NetSurf$Desktop yes
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| We need NCOS 1.11
|
|
|
|
If "<NetSurf$Desktop>" = "no" Then RMEnsure OSVersion 1.11 Error NCNetSurf needs NCOS 1.11 or later.
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensure CallASWI is installed.
|
2004-07-19 22:06:16 +04:00
|
|
|
| http://www.iyonix.com/32bit/
|
2004-07-20 21:32:13 +04:00
|
|
|
If "<NetSurf$Desktop>" = "no" Then RMLoad <NetSurf$Dir>.RMStore.CallASWI Else RMEnsure UtilityModule 3.70 RMLoad RMLoad System:Modules.CallASWI
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensure DrawFile is installed.
|
2004-07-19 22:06:16 +04:00
|
|
|
| http://acorn.riscos.com/riscos/releases/drawfile.arc
|
2004-07-20 21:32:13 +04:00
|
|
|
RMEnsure DrawFile 1.30 If "<NetSurf$Desktop>" = "no" Then RMLoad <NetSurf$Dir>.RMStore.DrawFile Else RMLoad System:Modules.DrawFile
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensure SharedUnixLibrary is installed.
|
2004-07-19 22:06:16 +04:00
|
|
|
| http://www.chocky.org/unix/usage.html
|
2004-07-20 21:32:13 +04:00
|
|
|
RMEnsure SharedUnixLibrary 1.02 If "<NetSurf$Desktop>" = "no" Then RMLoad <NetSurf$Dir>.RMStore.SharedULib Else RMLoad System:Modules.SharedULib
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensure AcornURI is installed.
|
2004-07-19 22:06:16 +04:00
|
|
|
| http://sudden.recoil.org/
|
|
|
|
Unset NetSurf$Start_URI_Handler
|
|
|
|
RMEnsure AcornURI 0.12 Set NetSurf$Start_URI_Handler 1
|
2004-07-20 21:32:13 +04:00
|
|
|
RMEnsure AcornURI 0.12 If "<NetSurf$Desktop>" = "no" Then RMLoad <NetSurf$Dir>.RMStore.URI Else RMLoad System:Modules.Network.URI
|
2004-07-19 22:06:16 +04:00
|
|
|
RMEnsure AcornURI 0.12 Unset NetSurf$Start_URI_Handler
|
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensure MimeMap is installed.
|
|
|
|
If "<InetDBase$Path>" = "" Then Error Inet databases can not be found.
|
|
|
|
If "<Inet$MimeMappings>" = "" Then Set Inet$MimeMappings InetDBase:MimeMap
|
|
|
|
RMEnsure MimeMap 0.10 RMLoad System:Modules.Network.MimeMap
|
|
|
|
RMEnsure MimeMap 0.10 Error NCNetSurf requires MimeMap 0.10 or later.
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensure Tinct is installed.
|
2004-07-19 22:06:16 +04:00
|
|
|
RMEnsure Tinct 0.05 RMLoad <NetSurf$Dir>.Resources.Tinct
|
2004-07-20 21:32:13 +04:00
|
|
|
RMEnsure Tinct 0.05 Error NetSurf requires Tinct 0.05 or later.
|
2004-07-19 22:06:16 +04:00
|
|
|
|
2004-07-20 21:32:13 +04:00
|
|
|
| Ensue that the Wimp Scrap directory has been set.
|
2004-07-19 22:06:16 +04:00
|
|
|
WimpSlot -Min 32k -Max 32k
|
|
|
|
If "<Wimp$ScrapDir>" = "" Then SetMacro Wimp$ScrapDir Cache:$.ScrapDir
|
|
|
|
If "<Wimp$Scrap>" = "" Then SetMacro Wimp$Scrap <Wimp$ScrapDir>.ScrapFile
|
|
|
|
|
2004-07-19 22:10:41 +04:00
|
|
|
Wimpslot -min 2150k -max 2150k
|
2004-07-20 21:32:13 +04:00
|
|
|
UnSet NetSurf$Desktop
|
2004-07-19 22:06:16 +04:00
|
|
|
Set NetSurf$Running yes
|
|
|
|
Run <NetSurf$Dir>.!RunImage 2><Wimp$ScrapDir>.NCNetSurf
|
|
|
|
UnSet NetSurf$Running
|