| !Run for !ZapConfig
|  James Aylett 1996 - 1998

If "<ZapConfig$Running>" = "Yes" Then Error 0 You can only run one copy of ZapConfig at once!

IconSprites <Obey$Dir>.!Sprites
Set ZapConfig$Dir <Obey$Dir>

RMEnsure UtilityModule 3.10 Error 0 You need RiscOS 3.10 or later to run ZapConfig.
If ("<Zap$Dir>" = "") OR ("<ZapModules$Path>" = "") Then Error Please locate !Zap before running ZapConfig.
If "<ZapUser$Path>" = "" Then Error Please locate !ZapUser before running ZapConfig.
If "<Wimp$ScrapDir>" = "" Then Error Please locate !Scrap before running ZapConfig.

Set Alias$Check If ("<Zap$Keys>" = "") OR ("<Zap$Options>" = "") OR ("<Zap$Settings>" = "") Then Set ZapUser%Incorrect 1
Set ZapUser%Incorrect 0
Check
If <ZapUser%Incorrect> Then Run ZapUser:Config.!ZapRun
Set ZapUser%Incorrect 0
Check
If <ZapUser%Incorrect> Then Error Your copy of Zap is too old for this version of ZapConfig.

Unset Alias$Check
Unset ZapUser%Incorrect

WimpSlot -min 128K -max 128K

|
| Options:
|	-prerpc		runs in pre-RPC mode (only affects keybindings window)
|	-filerpatch	support for FilerPatch extended object attributes
|	-nocos		remove support for cascading options styles
|	-strict		warn about dodgy Config files etc.
|	-child		run Zap again when we quit
|	-noconfirm	don't ask for confirmation when quitting without saving
|	-nofiletypes	don't configure external filetypes
|
| Add required options at the end of the following line.
Set Alias$ZapConfig /<ZapConfig$Dir>.!RunImage -nocos

| Auto-detection of RPC/pre-RPC state. Edit if required.
RMEnsure UtilityModule 3.50 Set Alias$ZapConfig <Alias$ZapConfig> -prerpc
ZapConfig