|
| !Run file for AMPlayAPI v2  
|
Set AMPlayAPI$Dir <Obey$Dir>
Iconsprites <AMPlayAPI$Dir>.!Sprites

| Ensure ABCLib is loaded.
| (only needed for compiled runimage)
RMEnsure ABCLibrary 4.15 RMLoad System:Modules.ABClib
Set AMPlay%ABC 1
RMEnsure ABCLibrary 0.00 Set AMPlay%ABC 0
IF AMPlay%ABC = 0 THEN RMEnsure ABClibrary 4.15 IfThere System:Modules.ABCLib Then RMLoad System:Modules.ABClib
IF AMPlay%ABC = 0 THEN RMEnsure ABCLibrary 4.15 Error AMPlay requires ABCLib 4.15 or later. A copy of this, with instructions, should have been included in the AMPlay distribution. 
IF AMPlay%ABC = 1 THEN RMEnsure ABCLibrary 4.15 Error AMPlay requires ABCLib 4.15 or later. You are running an old version of ABCLib. Please update ABCLib to 4.15 or later.
Unset AMPlay%ABC

WimpSlot -min 256k -max 256k
| Unlinked
Run <AMPlayAPI$Dir>.!RunImage %*0
| Linked
|Run <AMPlayAPI$Dir>.!RunImageL %*0
| Compiled
|Run <AMPlayAPI$Dir>.!RunImageO %*0
