| !Run file for !Makoto

IconSprites <Obey$Dir>.!Sprites
IconSprites <Obey$Dir>.!FileIcons
Set Makoto$Dir <Obey$Dir>
Set Makoto$Path Resources:$.Resources.Makoto.,<Makoto$Dir>.

| Recognised Image Formats
| Local Japanese Image Formats
Set File$Type_0c4 MAG
Set File$Type_0c5 ECCAnim
Set File$Type_0c6 Pic
| Standard Image Formats
Set File$Type_695 GIF
Set File$Type_b60 PNG

Set Alias$@RunType_0c4 Run <Makoto$Dir>.!Run %%*0
Set Alias$@RunType_0c5 Run <Makoto$Dir>.!Run %%*0
Set Alias$@RunType_0c6 Run <Makoto$Dir>.!Run %%*0
Set Alias$@RunType_695 Run <Makoto$Dir>.!Run %%*0
Set Alias$@RunType_b60 Run <Makoto$Dir>.!Run %%*0

DOSMap MAG &0c4
DOSMap ECC &0c5
DOSMap PIC &0c6
DOSMap GIF &695
DOSMap PNG &b60

| You should place the WimpExt module in a shared directory.
| RMEnsure WimpExtension 2.18 RMLoad System:Modules.WimpExt
RMEnsure WimpExtension 2.18 RMLoad <Makoto$Dir>.WimpExt
RMEnsure WimpExtension 2.18 Error You need WimpExtension 2.18 or later
| This line may help if you get a 'library failed' error on startup.
| X WimpExt LibFile System:Modules.WimpExtLib

| Register Decoder(s) with ResourceFS (to prevent disk access)
RMEnsure MakotoDecode 1.00 Run <Makoto$Dir>.!Register

| Decoder Configuration
|
| ECC: W<x>  Controls the AI data processing
|            0=Disabled
|            1=Enabled (with warning)
|            2=Enabled (without warning)
Set Makoto$OptionsECC W1

WimpSlot -min 128k -max 128k
Run <Makoto$Dir>.!RunImage %*0