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


%run <obey$dir>.resources.smarticons <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$Dir <obey$dir>
set Frotz$Path <obey$dir>.
set FrotzRes$Dir <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$Path>Sounds.,<Frotz$GameDir>.Sounds.

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

set Frotz$OS3 yes
rmensure UtilityModule 3.00 set Frotz$OS3 no
rmensure DataVox 3.65 rmload FrotzRes:DataVox
rmensure DataVox 3.65 error Frotz needs DataVox 3.65 or later!

if "<frotz$os3>" = "no" AND "<system$path>" = "" then error Please locate a copy of !System and try again

if "<frotz$os3>" = "no" Then %print FrotzRes:OS2chars

rmensure SharedCLibrary 3.75 rmload System:Modules.Clib
rmensure SharedCLibrary 3.75 error Frotz needs Clib 3.75 or later
rmensure FPEmulator 2.80 rmload System:Modules.FPEmulator
rmensure FPEmulator 2.80 error Frotz needs FPEmulator 3.75 or later
rmensure Colourtrans 0.52 error Frotz needs ColourTrans 0.52 or later


unset frotz$os3

| if "%*0" <> "" then wimpslot -min 512K -max 512K
| if "%*0" = "" then wimpslot -min 256K -max 256K

wimpslot -min 256K -max 256K
/Frotz:!RunImage %*0