| !Run file for !Frotz 1.20
|  Musus Umbra, 1996/7

rmensure UtilityModule 3.00 error Sorry, This version of Frotz requires Risc OS 3.00 or later.

iconsprites <obey$dir>.!Sprites

set file$type_11a Z-Code
set file$type_5ce Z-Save
set file$type_5cd Z-Recrd
set file$type_5cc Z-AUX
set alias$@runtype_11a /<obey$dir>.!Run %%*0
set alias$@runtype_5ce error You must be playing a game to load a savefile!|m||
set alias$@runtype_5cd error You must be playing a game to use a record file!|m||
set alias$@runtype_5cc error You must be playing a game to load one of its auxiliary files|m||

set Frotz$Path <obey$dir>.
set FrotzRes$Path <obey$dir>.Resources.

| Altering the next line allows you to specify the path that Frotz will
| look for sound samples on (see the help file for for info).
| By default, this is Frotz:Sounds (and any changes should also include
| this directory).  When Frotz loads the game, it sets Frotz$GameDir to the
| pathname of the directory containing the storyfile.
setMacro FrotzSnd$Path Frotz:Sounds.,<Frotz$GameDir>.Sounds.

rmensure ZapRedraw 0.30 rmload FrotzRes:ZapRedraw
rmensure ZapRedraw 0.30 error Frotz needs ZapRedraw 0.30 or later!
rmensure DataVox 3.65 rmload FrotzRes:DataVox
rmensure DataVox 3.65 error Frotz needs DataVox 3.65 or later!

| if "%*0" <> "" then wimpslot -min 512K -max 512K
| if "%*0" = "" then wimpslot -min 256K -max 256K
wimpslot -min 256K -max 256K
/Frotz:!RunImage %*0