home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Acorn User 10
/
AU_CD10.iso
/
Internet
/
Demos
/
Oregano
/
!Oregano
/
!Run
< prev
next >
Wrap
Text File
|
2000-05-16
|
4KB
|
111 lines
Set Oregano$Dir <Obey$Dir>
Set OreganoDir$Path <Obey$Dir>.
Setmacro Alias$OreganoPath If "<Oregano$Path>" = "" Then Set Oregano$Path %%0 Else Set Oregano$Path <Oregano$Path>,%%0
UnSet Oregano$Path
OreganoPath OreganoDir:Skins.Demo.
IfThere Choices:Oregano.Skin Then Obey -c Choices:Oregano.Skin
|OreganoPath OreganoDir:Skins.Xavier.
|OreganoPath OreganoDir:Skins.NetTV.
OreganoPath OreganoDir:Skins.Desktop.
OreganoPath OreganoDir:
IconSprites Oregano:!Sprites
| Make sure we've got access to a scrap directory
If "<Wimp$ScrapDir>" = "" Then Error No scrap directory set!
CDir <Wimp$ScrapDir>
If "<System$Path>" = "" Then Error System resources cannot be found
RMEnsure WindowManager 3.98 Error Oregano requires the nested window manager
| Make sure we've got access to a choices directory
If "<Choices$Write>" = "" Then Set Choices$Write <Oregano$Dir>
IF "<Choices$Write>" <> "<Oregano$Dir>" Then Set OreganoChoices$Dir <Choices$Write>.Oregano
IF "<Choices$Write>" <> "<Oregano$Dir>" Then CDir <OreganoChoices$Dir>
IF "<Choices$Write>" <> "<Oregano$Dir>" Then Set OreganoChoices$Path <OreganoChoices$Dir>. Else Set OreganoChoices$Path <Oregano$Path>
| Make sure we've got access to the proprietary modules
If "<OreganMods$Path>" = "" Then Run <Obey$Dir>.^.!OreganRes.!Boot
If "<OreganMods$Path>" = "" Then Error Could not find OreganMods - !OreganRes has not been seen?
| Make sure we've got access to the fonts
If "<TrueTypeFont$Path>" = "" Then Error Could not find fonts - !OreganRes has not been seen?
| Check if we need CallASWI
| We don't want to Load it for RISC OS 3.7, 3.8 or 4.0, but do for 3.1, 3.5, 3.6 and 4.5
RMEnsure UtilityModule 4.50 Set CallASWI$NC Yes
RMEnsure UtilityModule 3.70 Set CallASWI$RiscPC Yes
If "<CallASWI$RiscPC>"<>"Yes" AND "<CallASWI$NC>"="Yes" Then Unset CallASWI$NC
If "<CallASWI$NC>"="Yes" OR "<CallASWI$RiscPC>"="Yes" Then RMLoad OreganMods:CallASWI
Unset CallASWI$NC
Unset CallASWI$RiscPC
| Load the sound effects
| Make sure we've got access to the sound effect modules
If "<SoundMods$Path>" = "" Then Error Could not find sound mods - !OreganRes has not been seen?
RMEnsure ButtonClick 0.00 RMLoad SoundMods:BtnClick
RMEnsure SlideIn 0.00 RMLoad SoundMods:SlideIn
RMEnsure SlideOut 0.00 RMLoad SoundMods:SlideOut
| Load Pointers
IconSprites Oregano:Pointers
| Set HTTPStream timeout
Set HTTPStream$Timeout 120
| Set Cookie stuff
Set HTTPStream$MaxCookies 200
Set HTTPStream$CookiePath OreganoChoices:Cookies
| Modules Needed
RMEnsure MemoryAllocator 1.17 RMLoad OreganMods:MAlloc
RMEnsure MemoryAllocator 1.17 Error Oregano requires MemoryAllocator 1.17 or later
RMEnsure XTTFont 3.14 RMLoad OreganMods:XTTFont -e
RMEnsure XTTFont 3.14 Error Oregano requires XTTFont 3.14 or later
RMEnsure Resolver 0.43 RMLoad System:Modules.Network.Resolver
RMEnsure Resolver 0.43 Error Oregano requires Resolver 0.43 or later
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 Oregano required MimeMap 0.10 or later
| Load HTTPStream
|RMEnsure HTTPStream 0.72 IfThere OreganMods:HTTPStr128 Then RMLoad OreganMods:HTTPStr128 -file $.stdout -debug 1 Else RMLoad OreganMods:HTTPStrm -file $.stdout -debug 1
RMEnsure HTTPStream 0.72 IfThere OreganMods:HTTPStr128 Then RMLoad OreganMods:HTTPStr128 Else RMLoad OreganMods:HTTPStrm
RMEnsure HTTPStream 0.72 Error Oregano requires HTTPStream 0.72
| Load AcornURI if we can find it
IfThere System:Modules.Network.URI Then Obey <Oregano$Dir>.AcornURI
| URI/URL handler support
Set Alias$Open_URI_http <Oregano$Dir>.!Run -nowindow
Set Alias$Open_URI_file <Oregano$Dir>.!Run -nowindow
Set Alias$URLOpen_http <Oregano$Dir>.!Run -url %%*0
Set Alias$URLOpen_file <Oregano$Dir>.!Run -url %%*0
Set Alias$@RunType_FAF <Oregano$Dir>.!Run -file %%*0
| Set the Bookmarks file
Set Oregano$Bookmarks OreganoChoices:Bookmarks
| Set the User Options file
Set Oregano$UserOpts OreganoChoices:UserOpts
Wimpslot -min 1024K -max 1024K
|initstore &deadbeef { > null: }
|RMEnsure socketfs 0 RMLoad OreganMods:socketfs
|Run <Oregano$Dir>.Oregano %*0 2> Oregano:Debug
|Run <Oregano$Dir>.Oregano %*0 2> socketfs#IPv4::tcp.$.ncserver\9000
|If "<Oregano$DebugOut>"="" Then Set Oregano$DebugOut <Oregano$Dir>.stderr
Run <Oregano$Dir>.Oregano %*0