RISCOS: Don't try to load the required modules if they aren't installed

This commit is contained in:
Cameron Cawley 2019-09-18 15:34:15 +01:00
parent a46299ec37
commit 0fd6e4c2c9

View File

@ -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