| !Run file for Grimoire

IconSprites <Obey$Dir>.!Sprites

Set Grimoire$Dir <Obey$Dir>
Set Grimoire$Path <Obey$Dir>.

| The top toolbar row's buttons (Toolbar22 in square-pixel modes)
IconSprites <Grimoire$Dir>.Resources.Toolbar

Set Grimoire$Help <Grimoire$Dir>.!Help

| Snippet files: your own in Choices:Grimoire.Snippets, then the supplied ones
Set GrimSnip$Path Choices:Grimoire.Snippets.,<Grimoire$Dir>.Snippets.

| { Sourcery generated help details

Set Grimoire$Version "1.28"
Set Grimoire$Web "http://www.reallysmall.co.uk"
Set Grimoire$Title "Grimoire"
Set Grimoire$Publisher "The Really Small Software Company"
Set Grimoire$Description "Code editor"
| }

RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions

| { Sourcery generated module list

Set Grimoire$RunComplete ""
If "<Boot$OSVersion>" LEFT 1 = 5 Then Run <Grimoire$Dir>.!RunFiles.RunOS5
If "<Grimoire$RunError>" <> "" Then Error "Error loading modules"
If "<Grimoire$RunComplete>" = "" Then Run <Grimoire$Dir>.!RunFiles.RunOSAny
Unset Grimoire$RunComplete
| }

| Running Grimoire makes it the OLE editor (OLEServer$Type_XXX) for Text
| and every type a language driver's Match file gives, and the editor and
| run handler for Text (Alias$@EditType_FFF and Alias$@RunType_FFF). It
| sets these itself, so that it can put back the values it replaced when
| it quits.

| Minutes between autosaves of modified files (0 for none), and whether
| the first save over a file keeps the old one as file~
If "<Grimoire$Autosave>" = "" Then Set Grimoire$Autosave 5
If "<Grimoire$Backups>" = "" Then Set Grimoire$Backups Yes

| The languages are the drivers in !Languages
If "<Languages$Dir>" = "" Then Error Grimoire needs !Languages. Open the directory that holds it, then run Grimoire again.

WimpSlot -Min 1024k -Max 1024k
Run <Grimoire$Dir>.!RunImage %*0
