Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip » Resources/ResFind

Resources/ResFind

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » unzip_tools » !Infozip
Filename: Resources/ResFind
Read OK:
File size: 083A bytes
Load address: 0000
Exec address: 0000
File contents
    1REM ************************************************************************
    2REM *                                                                      *
    3REM *              ResFind: Look for resources                             *
    4REM *                                                                      *
    5REM *   Copyright (C) 1992-2005 Olaf Krumnow and Herbert zur Nedden        *
    6REM *                 German Archimedes Group (GAG)                        *
    7REM *                                                                      *
    8REM * Version 2.12            FREEWARE - may be used in any application    *
    9REM *                                                                      *
   10REM ************************************************************************
   11REM Squashed by StrongBS 2.10 on 08 May 2005
   12DIM B%256:ON ERROR!B%=255:$(B%+4)=REPORT$+" at "+STR$ ERL+CHR$ FALSE:SYS262367,B%,3,"ResFind":END
   13B$=FN3:I$=FN0("Obey$Dir"):IF B$=""B$=FN5(I$):IF LEFT$(B$,1)="!"B$=MID$(B$,2)
   14PROC0(B$+"$Dir",I$):J$=I$+".":F$="<"+B$+"$Dir>":D$=FN0(B$+"$Language")+","+FN0("ResFind$LanguagesPref")+","+FN4+","+FN0("ResFind$LanguagesSuff")+",UK":IF FN1(J$+"Resources")H$=J$+"Resources.":E$=F$+".Resources"ELSE H$=J$:E$=F$
   15F%=FALSE:REPEAT D%=INSTR(D$,","):IF D%=FALSE C$=D$:D$=""ELSE C$=LEFT$(D$,D%-1):D$=MID$(D$,D%+1)
   16IF C$<>""F%=FN1(H$+C$):IF NOTF%ANDLEN C$>10C$=LEFT$(C$,10):F%=FN1(H$+C$)
   17UNTIL F%ORD$="":IF F%PROC0(B$+"Res$Path",E$+"."+C$+".,"+E$+".,"+F$+"."):PROC0(B$+"Res$Dir",E$+"."+C$)ELSE PROC0(B$+"Res$Path",E$+".,"+F$+"."):PROC0(B$+"Res$Dir",E$)
   18END
   19DEF FN3 SYS131088TOK%;E%:IF(E%AND1)=1THEN
   20A$=""
   21ELSE A$=FN2(K%,255):A%=INSTR(A$,""""):IF A%>FALSE A%=INSTR(A$,"""",A%+1)
   22IF A%=FALSE THEN
   23A$=""
   24ELSE A$=MID$(A$,A%+1):WHILE LEFT$(A$,1)=" ":A$=MID$(A$,2):ENDWHILE:A%=INSTR(A$," "):IF A%>1A$=LEFT$(A$,A%-1)
   25ENDIF
   26ENDIF:=A$
   27DEF FN0(G$)SYS131107,G$,B%,256,,3TO,,C%;E%:IF(E%AND1)<>FALSE=""ELSE=FN2(B%,C%)
   28DEF PROC0(G$,M$)C%=LEN M$+1:$B%=M$:SYS131108,G$,B%,C%TO;E%:IF(E%AND1)<>FALSE ERROR3,"Can't set variable "+G$
   29ENDPROC
   30DEF FN4 SYS6,70,127TO,J%:SYS48,,67,2,J%,B%,256TO,,,,,C%:=FN2(B%,C%)
   31DEF FN1(N$)SYS131080,17,N$TOH%;E%:IF(E%AND1)<>FALSE H%=FALSE
   32=H%=2
   33DEF FN2(I%,C%)L$="":A%=FALSE:WHILE(A%<C%)AND(I%?A%>31):L$+=CHR$(I%?A%):A%+=1:ENDWHILE:=L$
   34DEF FN5(K$)G%=FALSE:D%=INSTR(K$,".",G%):WHILE D%>FALSE G%=D%:D%=INSTR(K$,".",G%+1):ENDWHILE:=MID$(K$,G%+1)
N� ************************************************************************
N� *                                                                      *
N� *              ResFind: Look for resources                             *
N� *                                                                      *
N� *   Copyright (C) 1992-2005 Olaf Krumnow and Herbert zur Nedden        *
N� *                 German Archimedes Group (GAG)                        *
N� *                                                                      *
N� * Version 2.12            FREEWARE - may be used in any application    *
	N� *                                                                      *

N� ************************************************************************
.� Squashed by StrongBS 2.10 on 08 May 2005
J� B%256:� �!B%=255:$(B%+4)=�$+" at "+� �+� �:ș262367,B%,3,"ResFind":�

BB$=�3:I$=�0("Obey$Dir"):� B$=""B$=�5(I$):� �B$,1)="!"B$=�B$,2)
��0(B$+"$Dir",I$):J$=I$+".":F$="<"+B$+"$Dir>":D$=�0(B$+"$Language")+","+�0("ResFind$LanguagesPref")+","+�4+","+�0("ResFind$LanguagesSuff")+",UK":� �1(J$+"Resources")H$=J$+"Resources.":E$=F$+".Resources"� H$=J$:E$=F$
DF%=�:� D%=�D$,","):� D%=� C$=D$:D$=""� C$=�D$,D%-1):D$=�D$,D%+1)
=� C$<>""F%=�1(H$+C$):� �F%�� C$>10C$=�C$,10):F%=�1(H$+C$)
�� F%�D$="":� F%�0(B$+"Res$Path",E$+"."+C$+".,"+E$+".,"+F$+"."):�0(B$+"Res$Dir",E$+"."+C$)� �0(B$+"Res$Path",E$+".,"+F$+"."):�0(B$+"Res$Dir",E$)
�
"� �3 ș131088�K%;E%:�(E%�1)=1�
	A$=""
9� A$=�2(K%,255):A%=�A$,""""):� A%>� A%=�A$,"""",A%+1)
� A%=� �
	A$=""
K� A$=�A$,A%+1):ȕ �A$,1)=" ":A$=�A$,2):�:A%=�A$," "):� A%>1A$=�A$,A%-1)
�
	�:=A$
B� �0(G$)ș131107,G$,B%,256,,3�,,C%;E%:�(E%�1)<>�=""�=�2(B%,C%)
\� �0(G$,M$)C%=� M$+1:$B%=M$:ș131108,G$,B%,C%�;E%:�(E%�1)<>� �3,"Can't set variable "+G$
�
?� �4 ș6,70,127�,J%:ș48,,67,2,J%,B%,256�,,,,,C%:=�2(B%,C%)
0� �1(N$)ș131080,17,N$�H%;E%:�(E%�1)<>� H%=�
 	=H%=2
!G� �2(I%,C%)L$="":A%=�:ȕ(A%<C%)�(I%?A%>31):L$+=�(I%?A%):A%+=1:�:=L$
"K� �5(K$)G%=�:D%=�K$,".",G%):ȕ D%>� G%=D%:D%=�K$,".",G%+1):�:=�K$,G%+1)
�
00000000  0d 00 01 4e f4 20 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |...N. **********|
00000010  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000040  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 0d 00  |**************..|
00000050  02 4e f4 20 2a 20 20 20  20 20 20 20 20 20 20 20  |.N. *           |
00000060  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000090  20 20 20 20 20 20 20 20  20 20 20 2a 0d 00 03 4e  |           *...N|
000000a0  f4 20 2a 20 20 20 20 20  20 20 20 20 20 20 20 20  |. *             |
000000b0  20 52 65 73 46 69 6e 64  3a 20 4c 6f 6f 6b 20 66  | ResFind: Look f|
000000c0  6f 72 20 72 65 73 6f 75  72 63 65 73 20 20 20 20  |or resources    |
000000d0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000e0  20 20 20 20 20 20 20 20  20 2a 0d 00 04 4e f4 20  |         *...N. |
000000f0  2a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |*               |
00000100  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000130  20 20 20 20 20 20 20 2a  0d 00 05 4e f4 20 2a 20  |       *...N. * |
00000140  20 20 43 6f 70 79 72 69  67 68 74 20 28 43 29 20  |  Copyright (C) |
00000150  31 39 39 32 2d 32 30 30  35 20 4f 6c 61 66 20 4b  |1992-2005 Olaf K|
00000160  72 75 6d 6e 6f 77 20 61  6e 64 20 48 65 72 62 65  |rumnow and Herbe|
00000170  72 74 20 7a 75 72 20 4e  65 64 64 65 6e 20 20 20  |rt zur Nedden   |
00000180  20 20 20 20 20 2a 0d 00  06 4e f4 20 2a 20 20 20  |     *...N. *   |
00000190  20 20 20 20 20 20 20 20  20 20 20 20 20 20 47 65  |              Ge|
000001a0  72 6d 61 6e 20 41 72 63  68 69 6d 65 64 65 73 20  |rman Archimedes |
000001b0  47 72 6f 75 70 20 28 47  41 47 29 20 20 20 20 20  |Group (GAG)     |
000001c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000001d0  20 20 20 2a 0d 00 07 4e  f4 20 2a 20 20 20 20 20  |   *...N. *     |
000001e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000220  20 2a 0d 00 08 4e f4 20  2a 20 56 65 72 73 69 6f  | *...N. * Versio|
00000230  6e 20 32 2e 31 32 20 20  20 20 20 20 20 20 20 20  |n 2.12          |
00000240  20 20 46 52 45 45 57 41  52 45 20 2d 20 6d 61 79  |  FREEWARE - may|
00000250  20 62 65 20 75 73 65 64  20 69 6e 20 61 6e 79 20  | be used in any |
00000260  61 70 70 6c 69 63 61 74  69 6f 6e 20 20 20 20 2a  |application    *|
00000270  0d 00 09 4e f4 20 2a 20  20 20 20 20 20 20 20 20  |...N. *         |
00000280  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000002b0  20 20 20 20 20 20 20 20  20 20 20 20 20 2a 0d 00  |             *..|
000002c0  0a 4e f4 20 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |.N. ************|
000002d0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
00000300  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 0d 00 0b 2e  |************....|
00000310  f4 20 53 71 75 61 73 68  65 64 20 62 79 20 53 74  |. Squashed by St|
00000320  72 6f 6e 67 42 53 20 32  2e 31 30 20 6f 6e 20 30  |rongBS 2.10 on 0|
00000330  38 20 4d 61 79 20 32 30  30 35 0d 00 0c 4a de 20  |8 May 2005...J. |
00000340  42 25 32 35 36 3a ee 20  85 21 42 25 3d 32 35 35  |B%256:. .!B%=255|
00000350  3a 24 28 42 25 2b 34 29  3d f6 24 2b 22 20 61 74  |:$(B%+4)=.$+" at|
00000360  20 22 2b c3 20 9e 2b bd  20 a3 3a c8 99 32 36 32  | "+. .+. .:..262|
00000370  33 36 37 2c 42 25 2c 33  2c 22 52 65 73 46 69 6e  |367,B%,3,"ResFin|
00000380  64 22 3a e0 0d 00 0d 42  42 24 3d a4 33 3a 49 24  |d":....BB$=.3:I$|
00000390  3d a4 30 28 22 4f 62 65  79 24 44 69 72 22 29 3a  |=.0("Obey$Dir"):|
000003a0  e7 20 42 24 3d 22 22 42  24 3d a4 35 28 49 24 29  |. B$=""B$=.5(I$)|
000003b0  3a e7 20 c0 42 24 2c 31  29 3d 22 21 22 42 24 3d  |:. .B$,1)="!"B$=|
000003c0  c1 42 24 2c 32 29 0d 00  0e da f2 30 28 42 24 2b  |.B$,2).....0(B$+|
000003d0  22 24 44 69 72 22 2c 49  24 29 3a 4a 24 3d 49 24  |"$Dir",I$):J$=I$|
000003e0  2b 22 2e 22 3a 46 24 3d  22 3c 22 2b 42 24 2b 22  |+".":F$="<"+B$+"|
000003f0  24 44 69 72 3e 22 3a 44  24 3d a4 30 28 42 24 2b  |$Dir>":D$=.0(B$+|
00000400  22 24 4c 61 6e 67 75 61  67 65 22 29 2b 22 2c 22  |"$Language")+","|
00000410  2b a4 30 28 22 52 65 73  46 69 6e 64 24 4c 61 6e  |+.0("ResFind$Lan|
00000420  67 75 61 67 65 73 50 72  65 66 22 29 2b 22 2c 22  |guagesPref")+","|
00000430  2b a4 34 2b 22 2c 22 2b  a4 30 28 22 52 65 73 46  |+.4+","+.0("ResF|
00000440  69 6e 64 24 4c 61 6e 67  75 61 67 65 73 53 75 66  |ind$LanguagesSuf|
00000450  66 22 29 2b 22 2c 55 4b  22 3a e7 20 a4 31 28 4a  |f")+",UK":. .1(J|
00000460  24 2b 22 52 65 73 6f 75  72 63 65 73 22 29 48 24  |$+"Resources")H$|
00000470  3d 4a 24 2b 22 52 65 73  6f 75 72 63 65 73 2e 22  |=J$+"Resources."|
00000480  3a 45 24 3d 46 24 2b 22  2e 52 65 73 6f 75 72 63  |:E$=F$+".Resourc|
00000490  65 73 22 8b 20 48 24 3d  4a 24 3a 45 24 3d 46 24  |es". H$=J$:E$=F$|
000004a0  0d 00 0f 44 46 25 3d a3  3a f5 20 44 25 3d a7 44  |...DF%=.:. D%=.D|
000004b0  24 2c 22 2c 22 29 3a e7  20 44 25 3d a3 20 43 24  |$,","):. D%=. C$|
000004c0  3d 44 24 3a 44 24 3d 22  22 8b 20 43 24 3d c0 44  |=D$:D$="". C$=.D|
000004d0  24 2c 44 25 2d 31 29 3a  44 24 3d c1 44 24 2c 44  |$,D%-1):D$=.D$,D|
000004e0  25 2b 31 29 0d 00 10 3d  e7 20 43 24 3c 3e 22 22  |%+1)...=. C$<>""|
000004f0  46 25 3d a4 31 28 48 24  2b 43 24 29 3a e7 20 ac  |F%=.1(H$+C$):. .|
00000500  46 25 80 a9 20 43 24 3e  31 30 43 24 3d c0 43 24  |F%.. C$>10C$=.C$|
00000510  2c 31 30 29 3a 46 25 3d  a4 31 28 48 24 2b 43 24  |,10):F%=.1(H$+C$|
00000520  29 0d 00 11 93 fd 20 46  25 84 44 24 3d 22 22 3a  |)..... F%.D$="":|
00000530  e7 20 46 25 f2 30 28 42  24 2b 22 52 65 73 24 50  |. F%.0(B$+"Res$P|
00000540  61 74 68 22 2c 45 24 2b  22 2e 22 2b 43 24 2b 22  |ath",E$+"."+C$+"|
00000550  2e 2c 22 2b 45 24 2b 22  2e 2c 22 2b 46 24 2b 22  |.,"+E$+".,"+F$+"|
00000560  2e 22 29 3a f2 30 28 42  24 2b 22 52 65 73 24 44  |."):.0(B$+"Res$D|
00000570  69 72 22 2c 45 24 2b 22  2e 22 2b 43 24 29 8b 20  |ir",E$+"."+C$). |
00000580  f2 30 28 42 24 2b 22 52  65 73 24 50 61 74 68 22  |.0(B$+"Res$Path"|
00000590  2c 45 24 2b 22 2e 2c 22  2b 46 24 2b 22 2e 22 29  |,E$+".,"+F$+".")|
000005a0  3a f2 30 28 42 24 2b 22  52 65 73 24 44 69 72 22  |:.0(B$+"Res$Dir"|
000005b0  2c 45 24 29 0d 00 12 05  e0 0d 00 13 22 dd 20 a4  |,E$)........". .|
000005c0  33 20 c8 99 31 33 31 30  38 38 b8 4b 25 3b 45 25  |3 ..131088.K%;E%|
000005d0  3a e7 28 45 25 80 31 29  3d 31 8c 0d 00 14 09 41  |:.(E%.1)=1.....A|
000005e0  24 3d 22 22 0d 00 15 39  cc 20 41 24 3d a4 32 28  |$=""...9. A$=.2(|
000005f0  4b 25 2c 32 35 35 29 3a  41 25 3d a7 41 24 2c 22  |K%,255):A%=.A$,"|
00000600  22 22 22 29 3a e7 20 41  25 3e a3 20 41 25 3d a7  |"""):. A%>. A%=.|
00000610  41 24 2c 22 22 22 22 2c  41 25 2b 31 29 0d 00 16  |A$,"""",A%+1)...|
00000620  0c e7 20 41 25 3d a3 20  8c 0d 00 17 09 41 24 3d  |.. A%=. .....A$=|
00000630  22 22 0d 00 18 4b cc 20  41 24 3d c1 41 24 2c 41  |""...K. A$=.A$,A|
00000640  25 2b 31 29 3a c8 95 20  c0 41 24 2c 31 29 3d 22  |%+1):.. .A$,1)="|
00000650  20 22 3a 41 24 3d c1 41  24 2c 32 29 3a ce 3a 41  | ":A$=.A$,2):.:A|
00000660  25 3d a7 41 24 2c 22 20  22 29 3a e7 20 41 25 3e  |%=.A$," "):. A%>|
00000670  31 41 24 3d c0 41 24 2c  41 25 2d 31 29 0d 00 19  |1A$=.A$,A%-1)...|
00000680  05 cd 0d 00 1a 09 cd 3a  3d 41 24 0d 00 1b 42 dd  |.......:=A$...B.|
00000690  20 a4 30 28 47 24 29 c8  99 31 33 31 31 30 37 2c  | .0(G$)..131107,|
000006a0  47 24 2c 42 25 2c 32 35  36 2c 2c 33 b8 2c 2c 43  |G$,B%,256,,3.,,C|
000006b0  25 3b 45 25 3a e7 28 45  25 80 31 29 3c 3e a3 3d  |%;E%:.(E%.1)<>.=|
000006c0  22 22 8b 3d a4 32 28 42  25 2c 43 25 29 0d 00 1c  |"".=.2(B%,C%)...|
000006d0  5c dd 20 f2 30 28 47 24  2c 4d 24 29 43 25 3d a9  |\. .0(G$,M$)C%=.|
000006e0  20 4d 24 2b 31 3a 24 42  25 3d 4d 24 3a c8 99 31  | M$+1:$B%=M$:..1|
000006f0  33 31 31 30 38 2c 47 24  2c 42 25 2c 43 25 b8 3b  |31108,G$,B%,C%.;|
00000700  45 25 3a e7 28 45 25 80  31 29 3c 3e a3 20 85 33  |E%:.(E%.1)<>. .3|
00000710  2c 22 43 61 6e 27 74 20  73 65 74 20 76 61 72 69  |,"Can't set vari|
00000720  61 62 6c 65 20 22 2b 47  24 0d 00 1d 05 e1 0d 00  |able "+G$.......|
00000730  1e 3f dd 20 a4 34 20 c8  99 36 2c 37 30 2c 31 32  |.?. .4 ..6,70,12|
00000740  37 b8 2c 4a 25 3a c8 99  34 38 2c 2c 36 37 2c 32  |7.,J%:..48,,67,2|
00000750  2c 4a 25 2c 42 25 2c 32  35 36 b8 2c 2c 2c 2c 2c  |,J%,B%,256.,,,,,|
00000760  43 25 3a 3d a4 32 28 42  25 2c 43 25 29 0d 00 1f  |C%:=.2(B%,C%)...|
00000770  30 dd 20 a4 31 28 4e 24  29 c8 99 31 33 31 30 38  |0. .1(N$)..13108|
00000780  30 2c 31 37 2c 4e 24 b8  48 25 3b 45 25 3a e7 28  |0,17,N$.H%;E%:.(|
00000790  45 25 80 31 29 3c 3e a3  20 48 25 3d a3 0d 00 20  |E%.1)<>. H%=... |
000007a0  09 3d 48 25 3d 32 0d 00  21 47 dd 20 a4 32 28 49  |.=H%=2..!G. .2(I|
000007b0  25 2c 43 25 29 4c 24 3d  22 22 3a 41 25 3d a3 3a  |%,C%)L$="":A%=.:|
000007c0  c8 95 28 41 25 3c 43 25  29 80 28 49 25 3f 41 25  |..(A%<C%).(I%?A%|
000007d0  3e 33 31 29 3a 4c 24 2b  3d bd 28 49 25 3f 41 25  |>31):L$+=.(I%?A%|
000007e0  29 3a 41 25 2b 3d 31 3a  ce 3a 3d 4c 24 0d 00 22  |):A%+=1:.:=L$.."|
000007f0  4b dd 20 a4 35 28 4b 24  29 47 25 3d a3 3a 44 25  |K. .5(K$)G%=.:D%|
00000800  3d a7 4b 24 2c 22 2e 22  2c 47 25 29 3a c8 95 20  |=.K$,".",G%):.. |
00000810  44 25 3e a3 20 47 25 3d  44 25 3a 44 25 3d a7 4b  |D%>. G%=D%:D%=.K|
00000820  24 2c 22 2e 22 2c 47 25  2b 31 29 3a ce 3a 3d c1  |$,".",G%+1):.:=.|
00000830  4b 24 2c 47 25 2b 31 29  0d ff                    |K$,G%+1)..|
0000083a