IconSprites <Obey$Dir>.!Sprites
IconSprites <Obey$Dir>.Resources.Pointers
IconSprites <Obey$Dir>.Resources.Icons

Set HID$Dir <Obey$Dir>
Set HID$Path <Obey$Dir>.
Set HID$Apps <Obey$Dir>.Apps
Set HIDApps$Path <Obey$Dir>.Apps.

Set Dummy$Path <Run$Path>,<HID$Dir>.Resources.
Run Dummy:Resfind HID
Unset Dummy$Path

| Load some modules

RMEnsure USBInfo    0.33 RMLoad <HID$Dir>.RMStore.USBInfo
RMEnsure VideoUtils 2.22 RMLoad <HID$Dir>.RMStore.Video

| Check RISC OS version and USBDriver version

Set RO$Version 5
RMEnsure UtilityModule 5.00 Set RO$Version 3
IF "<RO$Version>" = "5" THEN RMEnsure USBDriver 0.34 Error You need USBDriver 0.34 or later.

| Ensure the ABCLib module

Set ABCLib 1
RMEnsure ABCLibrary 0.00 Set ABCLib 0
If ABCLib = 0 Then IfThere System:modules.ABCLib THEN RMLoad System:modules.ABClib
Set ABCLib 1
RMEnsure ABCLibrary 4.20 Set ABCLib 0
If ABCLib = 0 Then Error You need ABCLibrary 4.20 or later. Double-click the !Boot app on your harddisc and click the Boot-icon. Drag the !Boot folder that came with HID to the 'Boot Merge' window and click 'Merge'. Then restart the computer.
Unset ABCLib

| Ensure AcornSSL

Set Ssl 1
RMEnsure AcornSSL 0.00 Set Ssl 0
If Ssl = 0 Then IfThere System:modules.Network.URL.AcornSSL THEN RMLoad System:modules.Network.URL.AcornSSL
Set Ssl 1
RMEnsure AcornSSL 1.05 Set Ssl 0
If Ssl = 0 Then Error You need AcornSSL 1.05 or later. Double-click the !Boot app on your harddisc and click the Boot-icon. Drag the !Boot folder that came with HID to the 'Boot Merge' window and click 'Merge'. Then restart the computer.
Unset Ssl

| Launch the application

Set HID$Logging 0
WimpSlot -min 350K -max 1024K
Run <HID$Dir>.!RunImage %*0
