@Don_Adan, post #270
@tukinem, post #271
@Don_Adan, post #274

@tukinem, post #277
(set #lang
(askchoice
(prompt "")
(help "")
(choices
"POLSKI"
"ENGLISH"
)
)
)
(if (= #lang 0)
(
(set #witaj "Witam w pakiecie instalacyjnym gry SOLTYS w polskiej wersji jezykowej")
(set #pytanie "Wybierz gdzie umiescic katalog z gra SOLTYS")
(set #zakoncz "SOLTYS zostal pomyslnie zainstalowany na twardym dysku")
)
(
(set #witaj "BLABLABLA")
(set #pytanie "BLABLABLA")
(set #zakoncz "BLABLABLA")
)
)
(welcome #witaj)
(set #dest
(askdir
(prompt #pytanie)
(help)
(default "SYS:")
)
)
(run "assign libs: SOLDEMO1:libs")
(askdisk
(prompt "DISK2")
(help "")
(dest"SOLDEMO2")
)
(copyfiles
(source "SOLDEMO2:")
(dest "RAM:")
(all)
)
(complete 20)
(askdisk
(prompt "DISK 3")
(help "")
(dest "SOLDEMO3")
)
(copyfiles
(source "SOLDEMO3:")
(dest "RAM:")
(all)
)
(complete 40)
(askdisk
(prompt "DISK 1")
(help "")
(dest "SOLDEMO1")
)
(copyfiles
(source "SOLDEMO1:soltys4.pack")
(dest "RAM:")
)
(complete 60)
(run "xfdDecrunch RAM:soltys1.pack")
(run "xfdDecrunch RAM:soltys2.pack")
(run "xfdDecrunch RAM:soltys3.pack")
(run "xfdDecrunch RAM:soltys4.pack")
(complete 80)
(run "JOIN RAM:soltys1.pack RAM:soltys2.pack RAM:soltys3.pack RAM:soltys4.pack AS RAM:soltys.join")
(delete "RAM:soltys1.pack")
(delete "RAM:soltys2.pack")
(delete "RAM:soltys3.pack")
(delete "RAM:soltys4.pack")
(complete 90)
(run "SOLDEMO1:C/lha x RAM:soltys.join RAM:")
(complete 95)
(delete "RAM:soltys.join")
(run "assign libs: sys:libs")
(complete 100)
(exit #zakoncz (quiet))@Don_Adan, post #267
Spliter move.l AllocMemPtr,A0 move.l AllocMemSize,D7 move.l A0,BufferPtr move.l D7,BufferSize NextFile move.l BufferPtr,A0 move.l BufferSize,D7 tst.b (A0) beq.w Quit cmp.b #"-",2(A0) bne.w Quit cmp.b #"l",3(A0) bne.w Quit cmp.b #"h",4(A0) bne.w Quit cmp.b #"0",5(A0) bne.w Quit moveq #2,D2 add.b (A0),D2 move.l A0,A2 add.l D2,A2 ; pointer to file data, if no subdirectory move.b 10(A0),D1 lsl.w #8, D1 move.b 9(A0),D1 swap D1 move.b 8(A0),D1 lsl.w #8, D1 move.b 7(A0),D1 ; skip size add.l D1,D2 sub.l D2,D7 bpl.b InBuffy add.l D2,D7 move.l AllocMemPtr,A1 move.l A1,BufferPtr CopyRest move.b (A0)+,(A1)+ subq.l #1,D7 bne.b CopyRest move.l A1,A0 jsr UpdateBuffer ; read next part of file from new file offset to A0 and set new D7 move.l D7,BufferSize bra.b NextFile InBuffy move.b 14(A0),D0 lsl.w #8, D0 move.b 13(A0),D0 swap D0 move.b 12(A0),D0 lsl.w #8, D0 move.b 11(A0),D0 ; file size to save move.b 21(A0),D2 ; length of file name lea 22(A0),A0 ; pointer to file name move.l PathPtr,A1 sub.l D0,D1 beq.b CopyName add.l A2,D1 cmp.b #2,(A2)+ bne.b Quit CopyPath move.b (A2)+,(A1)+ cmp.b #-1,(A2) bne.b CopyPath move.b #"/",(A1)+ ; insert slash move.l D1,A2 CopyName move.b (A0)+,(A1)+ subq.b #1,D2 bne.b CopyName move.l A2,A0 ; pointer to memory ; D0 - size of memory to save jsr SaveFile Quit rts AllocMemPtr dc.l 0 AllocMemSize ; must be greater than the biggest splited file dc.l 0 BufferPtr dc.l 0 BufferSize dc.l 0 PathPtr dc.l 0
@tukinem, post #283
Spliter move.l AllocMemPtr,A0 move.l AllocMemSize,D7 move.l A0,BufferPtr move.l D7,BufferSize NextFile move.l BufferPtr,A0 move.l BufferSize,D7 tst.b (A0) beq.w Quit cmp.b #"-",2(A0) bne.w Quit cmp.b #"l",3(A0) bne.w Quit cmp.b #"h",4(A0) bne.w Quit cmp.b #"0",5(A0) bne.w Quit moveq #2,D2 add.b (A0),D2 move.l A0,A2 add.l D2,A2 ; pointer to file data, if no subdirectory move.b 10(A0),D1 lsl.w #8, D1 move.b 9(A0),D1 swap D1 move.b 8(A0),D1 lsl.w #8, D1 move.b 7(A0),D1 ; skip size add.l D1,D2 sub.l D2,D7 bpl.b InBuffy add.l D2,D7 move.l AllocMemPtr,A1 move.l A1,BufferPtr CopyRest move.b (A0)+,(A1)+ subq.l #1,D7 bne.b CopyRest move.l A1,A0 jsr UpdateBuffer ; read next part of file from new file offset to A0 and set new D7 move.l D7,BufferSize bra.b NextFile InBuffy add.l D2,BufferPtr sub.l D2,BufferSize move.b 14(A0),D0 lsl.w #8, D0 move.b 13(A0),D0 swap D0 move.b 12(A0),D0 lsl.w #8, D0 move.b 11(A0),D0 ; file size to save move.b 21(A0),D2 ; length of file name lea 22(A0),A0 ; pointer to file name move.l PathPtr,A1 sub.l D0,D1 beq.b CopyName add.l A2,D1 cmp.b #2,(A2)+ bne.b Quit CopyPath move.b (A2)+,(A1)+ cmp.b #-1,(A2) bne.b CopyPath move.b #"/",(A1)+ ; insert slash move.l D1,A2 CopyName move.b (A0)+,(A1)+ subq.b #1,D2 bne.b CopyName move.l A2,A0 ; pointer to memory ; D0 - size of memory to save jsr SaveFile bra.w NextFile Quit rts AllocMemPtr dc.l 0 AllocMemSize ; must be greater than the biggest splited file dc.l 0 BufferPtr dc.l 0 BufferSize dc.l 0 PathPtr dc.l 0
@tukinem, post #286
(run "xfdDecrunch RAM:soltys1.pack")
(run "xfdDecrunch (tackon #INSTALL "soltys1.pack") ")
@mailman, post #290
@mailman, post #292
@tukinem, post #287
@Don_Adan, post #284
Spliter move.l AllocMemPtr,A0 move.l AllocMemSize,D7 move.l A0,BufferPtr move.l D7,BufferSize NextFile move.l BufferPtr,A0 move.l BufferSize,D7 moveq #16,D2 cmp.l D2,D7 ble.b UpdateBuff tst.b (A0) beq.w Quit cmp.b #"-",2(A0) bne.w Quit cmp.b #"l",3(A0) bne.w Quit cmp.b #"h",4(A0) bne.w Quit cmp.b #"0",5(A0) bne.w Quit moveq #2,D2 add.b (A0),D2 move.l A0,A2 add.l D2,A2 ; pointer to file data, if no subdirectory move.b 10(A0),D1 lsl.w #8, D1 move.b 9(A0),D1 swap D1 move.b 8(A0),D1 lsl.w #8, D1 move.b 7(A0),D1 ; skip size add.l D1,D2 sub.l D2,D7 bpl.b InBuffy add.l D2,D7 UpdateBuff move.l AllocMemPtr,A1 move.l A1,BufferPtr CopyRest move.b (A0)+,(A1)+ subq.l #1,D7 bne.b CopyRest move.l A1,A0 jsr UpdateBuffer ; read next part of file from new file offset to A0 and set new D7 move.l D7,BufferSize bra.b NextFile InBuffy add.l D2,BufferPtr sub.l D2,BufferSize move.b 14(A0),D0 lsl.w #8, D0 move.b 13(A0),D0 swap D0 move.b 12(A0),D0 lsl.w #8, D0 move.b 11(A0),D0 ; file size to save move.b 21(A0),D2 ; length of file name lea 22(A0),A0 ; pointer to file name move.l PathPtr,A1 sub.l D0,D1 beq.b CopyName add.l A2,D1 cmp.b #2,(A2)+ bne.b Quit CopyPath move.b (A2)+,(A1)+ cmp.b #-1,(A2) bne.b CopyPath move.b #"/",(A1)+ ; insert slash move.l D1,A2 CopyName move.b (A0)+,(A1)+ subq.b #1,D2 bne.b CopyName move.l A2,A0 ; pointer to memory ; D0 - size of memory to save jsr SaveFile bra.w NextFile Quit rts AllocMemPtr dc.l 0 AllocMemSize ; must be greater than the biggest splited file dc.l 0 BufferPtr dc.l 0 BufferSize dc.l 0 PathPtr dc.l 0
@mailman, post #294

(run "assign fonts: SOLDEMO1:fonts add")
(run "ISO-topazPL")
(set #XFD "SOLDEMO1:C/xfdDecrunch")
(set #LHA "SOLDEMO1:C/lha x ")
(set #JOIN "JOIN")
(set #lang
(askchoice
(prompt "")
(help "")
(choices
"POLSKI"
"ENGLISH"
)
)
)
(if (= #lang 0)
(
(set #witaj "Witam w pakiecie instalacyjnym gry SOŁTYS")
(set #pytanie "Wybierz, gdzie umie¶cić katalog z gr± SOŁTYS")
(set #zakoncz "SOŁTYS został pomy¶lnie zainstalowany na twardym dysku")
)
(
(set #witaj "Welcome to the installation package of the game SOŁTYS")
(set #pytanie "Choose where to put the folder with the game SOŁTYS")
(Set #zakoncz "SOŁTYS has been successfully installed on the hard drive")
)
)
(welcome #witaj)
(set #dest
(askdir
(prompt #pytanie)
(help)
(default "SYS:")
)
)
(set #INSTALL (tackon #DEST "SOLTYS"))
(makedir #INSTALL)
(run "assign libs: SOLDEMO1:libs")
(askdisk
(prompt "DISK2")
(help "")
(dest"SOLDEMO2")
)
(copyfiles
(source "SOLDEMO2:")
(dest #INSTALL)
(all)
)
(complete 20)
(askdisk
(prompt "DISK 3")
(help "")
(dest "SOLDEMO3")
)
(copyfiles
(source "SOLDEMO3:")
(dest #INSTALL)
(all)
)
(complete 40)
(askdisk
(prompt "DISK 1")
(help "")
(dest "SOLDEMO1")
)
(copyfiles
(source "SOLDEMO1:soltys4.pack")
(dest #INSTALL)
)
(complete 60)
(run "avail flush")
(set #FILE1 (tackon #INSTALL "soltys1.pack"))
(set #FILE2 (tackon #INSTALL "soltys2.pack"))
(set #FILE3 (tackon #INSTALL "soltys3.pack"))
(set #FILE4 (tackon #INSTALL "soltys4.pack"))
(working "LZMA depacking file 1...")
(run #XFD #FILE1)
(working "LZMA depacking file 2...")
(run #XFD #FILE2)
(working "LZMA depacking file 3...")
(run #XFD #FILE3)
(working "LZMA depacking file 4...")
(run #XFD #FILE4)
(complete 80)
(working "JOINING FILES")
(set #AFTERJOIN (tackon #INSTALL "soltys.join"))
(run #JOIN #FILE1 #FILE2 #FILE3 #FILE4 "AS" #AFTERJOIN)
(delete #FILE1)
(delete #FILE2)
(delete #FILE3)
(delete #FILE4)
(complete 90)
(run #LHA #AFTERJOIN #INSTALL)
;(run "SOLDEMO1:C/lha x RAM:soltys.join RAM:")
(complete 95)
;(delete #AFTERJOIN)
;(delete "RAM:soltys.join")
(run "assign libs: sys:libs")
(complete 100)
(exit #zakoncz (quiet)) @tukinem, post #287
teraz moja ścieżka instalacji to #INSTALL i nie mogę użyć czegoś takiego:
(run "xfdDecrunch (tackon #INSTALL "soltys1.pack") ")
(run (cat "xfdDecrunch " (tackon #INSTALL "soltys1.pack")))
(set #LHA "SOLDEMO1:C/LhA x ") (run (cat #LHA (tackon #INSTALL "soltys1.pack")))