aboutsummaryrefslogtreecommitdiff
path: root/dists
diff options
context:
space:
mode:
authorCameron Cawley2019-09-18 15:34:15 +0100
committerCameron Cawley2019-09-18 17:14:10 +0100
commit0fd6e4c2c9016f6e5aab2bcd95af163d852b3383 (patch)
treef84dcc9d98c3d623f039bb9d66b1a0885e858cb4 /dists
parenta46299ec374a3cad646712e9e43185092a91e0ac (diff)
downloadscummvm-rg350-0fd6e4c2c9016f6e5aab2bcd95af163d852b3383.tar.gz
scummvm-rg350-0fd6e4c2c9016f6e5aab2bcd95af163d852b3383.tar.bz2
scummvm-rg350-0fd6e4c2c9016f6e5aab2bcd95af163d852b3383.zip
RISCOS: Don't try to load the required modules if they aren't installed
Diffstat (limited to 'dists')
-rw-r--r--dists/riscos/!Run,feb8
1 files changed, 6 insertions, 2 deletions
diff --git a/dists/riscos/!Run,feb b/dists/riscos/!Run,feb
index 8def7f7fa4..531d94babb 100644
--- a/dists/riscos/!Run,feb
+++ b/dists/riscos/!Run,feb
@@ -1,11 +1,15 @@
Run <Obey$Dir>.!Boot
-RMEnsure SharedUnixLibrary 1.14 RMLoad System:Modules.SharedULib
+Set Alias$RMLoadIfThere IfThere %%0 Then RMLoad %%*0
+
+RMEnsure SharedUnixLibrary 1.14 RMLoadIfThere System:Modules.SharedULib
RMEnsure SharedUnixLibrary 1.14 Error ScummVM requires SharedUnixLibrary 1.14 or later. This can be downloaded from https://www.riscos.info/packages/LibraryDetails.html#SharedUnixLibrary
-RMEnsure DigitalRenderer 0.56 RMLoad System:Modules.DRenderer
+RMEnsure DigitalRenderer 0.56 RMLoadIfThere System:Modules.DRenderer
RMEnsure DigitalRenderer 0.56 Error ScummVM requires DigitalRenderer 0.56 or later. This can be downloaded from https://www.riscos.info/packages/LibraryDetails.html#DRenderer
+Unset Alias$RMLoadIfThere
+
| If running from the desktop, redirect stdout and stderr to a file.
| This shouldn't happen when running from the command line, so that commands like "<ScummVM$Dir> --help" still work as expected.
Set Alias$Run_ScummVM Run <ScummVM$Dir>.scummvm %%*0 ><Choices$Write>.ScummVM.stdout 2><Choices$Write>.ScummVM.stderr