| Comment out the following line if you don't want a RamDisc to be used for scrap.
if "<Thump$ScrapDir>" = "" then ifthere RAM::0.$ then Set Thump$ScrapDir RAM::0.$



| Don't change anything below this point unless you are sure of what you are doing.

WimpSlot -min 64k -max 64k

if "<Thump$ScrapDir>" = "" then Set Thump$ScrapDir <Wimp$ScrapDir>.Thump
if "<Thump$CacheDir>" = "" then Set Thump$CacheDir <Wimp$ScrapDir>.Thump
if "<Thump$DebugDir>" = "" then Set Thump$DebugDir <Thump$CacheDir>

Set Thump$Dir <Obey$Dir>
/<Thump$Dir>.!Boot

| Automatically set the variable ThumpRes$Path to the user's preferred language
Run <Thump$Dir>.Resources.ResFind Thump

Set ThumpUser$Write <Thump$Dir>.User
if "<Choices$Write>" <> "" then Set ThumpUser$Write <Choices$Write>.Thump
IfThere <Thump$Dir>.User Then Set ThumpUser$Write <Thump$Dir>.User

Set ThumpUser$Path <Choices$Dir>.Thump.,<Thump$Dir>.User.
IfThere <Thump$Dir>.User Then Set ThumpUser$Path <Thump$Dir>.User.,<Choices$Dir>.Thump.

RMEnsure SharedCLibrary 5.17 RMLoad System:Modules.CLib
RMEnsure SharedCLibrary 5.34 Error SharedCLibrary 5.34 or later is required

RMEnsure ColourTrans 1.07 RMLoad System:Modules.ColourTran*
RMEnsure ColourTrans 1.07 Error ColourTrans 1.07 or later is required

| The ThumpSupport module is not necessary if you are using the -notrap flag.
| If you are NOT using the -notrap flag below, then you MUST load ThumpSupport.
RMEnsure ThumpSupport 0.03 RMLoad <Thump$Dir>.ThumpSuppt

| Run any user-defined startup script
IfThere ThumpUser:Startup Then Filer_Run ThumpUser:Startup

WimpSlot -min 296K -max 296K

| The following parameters are accepted by the !RunImage
|   -maxda=<n> sets the maximum dynamic area size that Thump claims (Mbytes)
|   -debug=<n> logs some debugging information to <Thump$DebugDir>.Debug
|   -notrap    means that RISC OS can generate "Please insert disk..." messages
| Anything not starting with '-' is assumed to be an image to display
Run <Thump$Dir>.!RunImage -maxda=64 %*0