|   File        : !Run2
|   Date        : 07-Dec-97
|   Author      :  A.Thoukydides, 1996, 1997
|   Description : The second part of the script used to start the ARMEdit
|                 application. This ensures that all required modules are
|                 loaded, and then starts the actual application.

| Check that there is sufficient memory to run
WimpSlot -min 112K -max 112K

| Check that a !Scrap folder exists
If "<Wimp$Scrap>"="" Then Error 0 Scrap folder could not be found. Please double-click on a copy of !Scrap and try again.

| Special care needs to be taken over the C library
Set ARMEdit$CLibLoaded 1
RMEnsure SharedCLibrary 0.00 Set ARMEdit$CLibLoaded 0
If ARMEdit$CLibLoaded=1 Then RMEnsure SharedCLibrary 3.75 Error 0 You are already running a version of CLib which is too old. This application needs SharedCLibrary 3.75 or later.
UnSet ARMEdit$CLibLoaded

| Ensure that the correct versions of modules are loaded
Run <ARMEdit$Dir>.Resources.Ensure SharedCLibrary 3.75 CLib
Run <ARMEdit$Dir>.Resources.Ensure FPEmulator     4.00 FPEmulator
Run <ARMEdit$Dir>.Resources.Ensure MessageTrans   0.28 MsgTrans
Run <ARMEdit$Dir>.Resources.Ensure ColourTrans    0.52 Colours
Run <ARMEdit$Dir>.Resources.Ensure DCS            1.06 Toolbox.DCS_Quit
Run <ARMEdit$Dir>.Resources.Ensure Iconbar        1.11 Toolbox.IconBar
Run <ARMEdit$Dir>.Resources.Ensure Menu           0.22 Toolbox.Menu
Run <ARMEdit$Dir>.Resources.Ensure ProgInfo       0.09 Toolbox.ProgInfo
Run <ARMEdit$Dir>.Resources.Ensure SaveAs         0.10 Toolbox.SaveAs
Run <ARMEdit$Dir>.Resources.Ensure Toolbox        1.33 Toolbox.Toolbox
Run <ARMEdit$Dir>.Resources.Ensure Window         1.29 Toolbox.Window

| Load the latest version of the ARMEdit module
RMEnsure ARMEdit 1.04 Run <ARMEdit$Dir>.Resources.ARMEdit

| Check again that there is sufficient memory to run
WimpSlot -min 112K -max 112K

| Finally start the application
Run <ARMEdit$Dir>.Resources.!RunImage