aboutsummaryrefslogtreecommitdiff
path: root/dists/riscos/!Run,feb
blob: 1b5f769ee67e55fe7d2bb232b31f501ac31ebbe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Run <Obey$Dir>.!Boot

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.55 RMLoadIfThere System:Modules.DRenderer
RMEnsure DigitalRenderer 0.55 Error ScummVM requires DigitalRenderer 0.55 or later. This can be downloaded from https://www.riscos.info/packages/LibraryDetails.html#DRenderer

RMEnsure Iconv 0.12 RMLoadIfThere System:Modules.Iconv
RMEnsure Iconv 0.12 Error ScummVM requires Iconv 0.12 or later. This can be downloaded from https://www.netsurf-browser.org/projects/iconv/

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
If "<Wimp$State>"="commands" Then Set Alias$Run_ScummVM Run <ScummVM$Dir>.scummvm %%*0
CDir <Choices$Write>.ScummVM

|WimpSlot
Run_ScummVM %*0

Unset Alias$Run_ScummVM