Set USBinfo$DeviceDescr 0
Set USBinfo$HidBuffer 16

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

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

| 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, select Boot and click Install. Drag the !Boot folder that came with USBinfo 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 Filer_OpenDir HID:Install 200 400 400 400 -LargeIcons
| If Ssl = 0 Then Error You need AcornSSL 1.05 or later. Double-click the !Boot app on your harddisc, select Boot and click Install. Drag the !Boot folder that came with USBinfo to the 'Boot Merge' window and click 'Merge'. Then restart the computer.
| Unset Ssl

| Ensure any other modules

RMEnsure USBInfo 0.33 RMLoad <USBInfo$Dir>.RMStore.USBInfo
RMEnsure USBInfo 0.33 Error USBinfo module too old!
RMEnsure VideoUtils 2.22 RMLoad <USBInfo$Dir>.RMStore.Video
RMEnsure Log 0.43 RMLoad <USBinfo$Dir>.RMStore.Log
RMEnsure Zeus 0.33 RMLoad <USBInfo$Dir>.RMStore.Zeus

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