[iyonix-support] Re: New 5.14 ROM on Iyonix

In message <4335c25350.alan@xxxxxxxxxxxx>
          Dr Alan Leighton <alan.leighton2@xxxxxxxxxxxx> wrote:

> In message <5053bbf633chris@xxxxxxxxxxxxxxxxxxxx>
>           cj <chris@xxxxxxxxxxxxxxxxxxxx> wrote:

>> In article <2454951.102258-tennant@xxxxxxxxxxxxxxxxx>,
>>    Tennant Stuart <tennant@xxxxxxxxxxxxxxxxx> wrote:
>>> ..and not a single link says "go514" as far as I can see.

>> go514 is an obey file *inside* the soft-iyo.5.14.zip file. You need
>> to download the zip file first.

> I guess you have to do this every time you switch on?

> Alan

If you want to run 5.14 every time, but softload it each time, you 
could run the following Basic program.

I have set it in !Boot, Run. The softload files are in a folder on the 
hard drive called RiscOS-open. You'll need to change that path to your 
own location. (The program could be improved, so that it uses its own 
location as the location to look for the go514 file.)

Save the following as a BASIC file.

REM boot time softloader

OSCLI("HELP UTILITYMODULE { > UTILITYVERSION/TXT }")
X=OPENIN"UTILITYVERSION/TXT"
IF X=0 THEN ERROR 1,"CANNOT OPEN INPUT"
REPEAT
  A$=GET$#X
UNTIL (INSTR(A$,"MOS Utilities")>0) OR EOF#X
CLOSE#X:X=0
OSCLI("DELETE UTILITYVERSION/TXT")
IF INSTR(A$,"MOS Utilities")<1 THEN PRINT"Not found":END
A$=MID$(A$,INSTR(A$,"MOS Utilities")+13,999)
I%=0
WHILE(MID$(A$,I%,1))=" "
  I%+=1
ENDWHILE
A$=MID$(A$,I%,99)
I=VAL(A$)*100
I%=INT(I+0.001)
IF I%>513 THEN END
OSCLI("RUN ADFS::HardDisc4.$.RiscOS-open.go514")
END

The logic is to check the version number, so it doesn't run the 
softloader if 5.14 or 5.15 are already running. The code was extracted 
from another application, where it successfully gets the OS version 
from 3.1 to 4.39, including 5.xx.


-- 
Alan Adams, from Northamptonshire
alan@xxxxxxxxxxxxxxxx
http://www.nckc.org.uk/
---
To alter your preferences or leave the group, 
visit http://www.freelists.org/list/iyonix-support
Other info via http://www.freelists.org/webpage/iyonix-support

Other related posts: