Subversion Repositories Kolibri OS

Rev

Rev 7169 | Rev 8780 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7169 Rev 7538
Line 41... Line 41...
41
include 'lang.inc'
41
include 'lang.inc'
42
include '../../macros.inc'
42
include '../../macros.inc'
43
include '../../proc32.inc'
43
include '../../proc32.inc'
44
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
44
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
45
include '../../dll.inc'
45
include '../../dll.inc'
-
 
46
;include '../../debug.inc'
-
 
47
 
-
 
48
 
-
 
49
;include 'include/macros.inc'
-
 
50
;include 'include/proc32.inc'
-
 
51
;include 'include/box_lib.mac'
-
 
52
;include 'include/dll.inc'
46
include 'debug.inc'
53
include 'debug.inc'
Line 47... Line 54...
47
 
54
 
48
version equ '0.65'
55
version equ '0.70'
Line 49... Line 56...
49
version_dword equ 0*10000h + 65
56
version_dword equ 0*10000h + 70
50
 
-
 
51
WIN_W = 400
57
 
-
 
58
WIN_W = 400
-
 
59
SIZE_COPY_BUF = 1024*1024*2
Line 52... Line 60...
52
 
60
MM_MAX_BLOCKS equ 1024
53
SIZE_COPY_BUF = 1024*1024*2
61
 
54
 
62
 
55
virtual at 0
63
virtual at 0
Line 80... Line 88...
80
.cur_console_size dd	?
88
.cur_console_size dd	?
81
end virtual
89
end virtual
Line 82... Line -...
82
 
-
 
-
 
90
 
Line 83... Line 91...
83
 
91
 
84
 
92
 
85
 
-
 
-
 
93
;--  CODE  -------------------------------------------------------------------
86
 
94
 
-
 
95
include 'parse.inc'
Line 87... Line 96...
87
include 'parse.inc'
96
include 'fs.inc'
-
 
97
include 'file_tree.inc'
-
 
98
include 'memory_manager.inc'
-
 
99
include 'dialogs.inc'
88
include 'fs.inc'
100
 
89
 
101
 
90
;--  CODE  -------------------------------------------------------------------
102
start:
91
 
103
;dnl
92
 
104
;dpsP params
93
start:
105
;dnl
Line 94... Line -...
94
	mcall	68, 11
-
 
95
	mcall	40, 100111b + 0C0000000h
-
 
96
	stdcall dll.Load, IMPORTS
106
	mcall	68, 11
97
	test	eax, eax
107
	mcall	40, 100111b + 0C0000000h
98
	jnz	exit
108
	stdcall dll.Load, IMPORTS
99
	mov	[pathOut],0
109
	test	eax, eax
100
 
110
	jnz	exit
Line 113... Line 123...
113
	je	.arbeit
123
	je	.arbeit
114
	jmp	errorParsing
124
	jmp	errorParsing
Line 115... Line 125...
115
 
125
 
116
.arbeit:
126
.arbeit:
117
;2.
127
;2.
118
	call	getParam2
128
	call	getParamOutPath
119
	cmp	eax, 2
129
	cmp	eax, 2
Line 120... Line 130...
120
	je	errorParsing
130
	je	errorParsing
Line 146... Line 156...
146
	jmp	@b
156
	jmp	@b
147
.check:
157
.check:
148
	call	startUnpack
158
	call  startUnpack
149
	mcall	-1
159
	mcall -1
150
@@:
160
@@:
-
 
161
 
151
	stdcall [OpenDialog_Init],OpenDialog_data
162
	stdcall [OpenDialog_Init],OpenDialog_data
Line 152... Line 163...
152
 
163
 
153
;init edit fields  --------------
164
;init edit fields  --------------
154
	xor	al,al
165
	xor	al,al
Line 169... Line 180...
169
	mov	eax, 1024
180
	mov	eax, 1024
170
	sub	eax, ecx
181
	sub	eax, ecx
171
	mov	dword[edtUnpPath.size], eax
182
	mov	dword[edtUnpPath.size], eax
172
	mov	dword[edtUnpPath.pos], eax
183
	mov	dword[edtUnpPath.pos], eax
Line -... Line 184...
-
 
184
 
-
 
185
;--------
-
 
186
;       call    file_tree_Init
Line 173... Line 187...
173
 
187
 
174
 
188
 
175
;main loop --------------------
189
;main loop --------------------
Line 216... Line 230...
216
	jmp	wm_redraw
230
	jmp	wm_redraw
217
    @@:
231
    @@:
Line 218... Line 232...
218
 
232
 
219
	cmp	ah, 2
233
	cmp	ah, 2
220
	jne	@f
234
	jne	@f
221
	;mcall   51,1,startUnpack,stackUnpack
235
	mcall	51,1,startUnpack,stackUnpack
222
	;mov     [bWinChild],1
236
	mov	[bWinChild],1
223
	call   startUnpack
237
	;call   startUnpack
224
	jmp	wm_redraw
238
	jmp	wm_redraw
Line 225... Line 239...
225
    @@:
239
    @@:
226
 
240
 
Line 231... Line 245...
231
wm_mouse:
245
wm_mouse:
232
	cmp	[bWinChild],0
246
	cmp	[bWinChild],0
233
	jne	still
247
	jne	still
234
	stdcall [edit_box_mouse],edtPack
248
	stdcall [edit_box_mouse],edtPack
235
	stdcall [edit_box_mouse],edtUnpPath
249
	stdcall [edit_box_mouse],edtUnpPath
236
 
-
 
-
 
250
;       stdcall file_tree_Mouse
237
	jmp	still
251
	jmp	still
Line 238... Line 252...
238
 
252
 
239
exit:
253
exit:
Line 240... Line 254...
240
	mcall	-1
254
	mcall	-1
-
 
255
 
-
 
256
errorParsing:
241
 
257
dph edx
242
errorParsing:
258
 
Line 243... Line 259...
243
	dps 'errorParsing'
259
	dps ' errorParsing'
Line 257... Line 273...
257
 
273
 
258
	edit_boxes_set_sys_color edtPack,endEdits,sc
274
	edit_boxes_set_sys_color edtPack,endEdits,sc
259
	stdcall [edit_box_draw],edtPack
275
	stdcall [edit_box_draw],edtPack
Line 260... Line -...
260
	stdcall [edit_box_draw],edtUnpPath
-
 
-
 
276
	stdcall [edit_box_draw],edtUnpPath
261
 
277
 
262
	; plain window labels
278
 
263
	cmp	[redInput],0
279
	cmp	[redInput],0
264
	jne	@f
280
	jne	@f
265
	mov	ecx,[sc.work_text]
281
	mov	ecx,[sc.work_text]
Line 270... Line 286...
270
     .l1:
286
     .l1:
271
	mcall 4, <15,16>, , strInp
287
	mcall 4, <15,16>, , strInp
272
	mov	ecx,[sc.work_text]
288
	mov	ecx,[sc.work_text]
273
	or	ecx,90000000h
289
	or	ecx,90000000h
274
	mcall 4, <15,37>, , strPath
290
	mcall 4, <15,37>, , strPath
275
	
-
 
276
	; text on buttons
-
 
277
	mov	ecx,[sc.work_button_text]
291
	mov	ecx,[sc.work_button_text]
278
	or	ecx,90000000h
292
	or	ecx,90000000h
279
if lang eq ru
293
if lang eq ru
280
	mcall 4, <107,70>, , strGo
294
	mcall 4, <107,70>, , strGo
281
else
295
else
282
	mcall 4, <127,70>, , strGo
296
	mcall 4, <127,70>, , strGo
283
end if
297
end if
284
	mcall 4, <(WIN_W-47),12>, , strDots
298
	mcall 4, <(WIN_W-47),12>, , strDots
285
	mcall 4, <(WIN_W-47),37>, , strDots	
299
	mcall 4, <(WIN_W-47),37>, , strDots	
Line -... Line 300...
-
 
300
 
-
 
301
;       call file_tree_Draw
286
 
302
 
287
	mcall 12, 2
303
	mcall 12, 2
288
	ret
304
	ret
Line 289... Line 305...
289
endp
305
endp
Line 386... Line 402...
386
 
402
 
387
	test	eax,eax
403
	test	eax,eax
388
	jnz	@f
404
	jnz	@f
389
	cmp	ebx,0		;;/ ŠŽ‘’›‹œ!!!!
405
	cmp	ebx,0		;;/ ŠŽ‘’›‹œ!!!!
390
	je	 .errNotFound	;;§­ ç¥­¨¥ ebx ¯®«ã祭® ®¯ëâ­ë¬ ¯ãâñ¬.
406
	je	 .errNotFound	;;§­ ç¥­¨¥ ebx ¯®«ã祭® ®¯ëâ­ë¬ ¯ãâñ¬.
391
	cmp	ebx,400h	;;ª ª ®­® ¡ã¤¥â à ¡®â âì á ¤à㣨¬¨ ¢¥àá¨ï¬¨
407
	cmp	ebx,400h
392
	je	 .errNotSupp	;;¡¨¡«¨®â¥ª¨ - ­¥ ïá­®!
408
	je	 .errNotSupp
393
      @@:
409
      @@:
Line 394... Line 410...
394
	mov	[hPlugin],eax
410
	mov	[hPlugin],eax
395
 
411
 
396
;get num of all files
412
;get num of all files
397
;        stdcall calcSizeArch,[hPlugin]
-
 
398
;        push    ebp
-
 
399
;        stdcall [aReadFolder], [hPlugin]
-
 
400
;        pop     ebp
-
 
401
 
-
 
402
 
-
 
403
 
-
 
404
;        push    ebp
-
 
405
;        stdcall [aOpen], [hPlugin], .str1, O_READ
-
 
406
;        pop     ebp
-
 
407
;
413
       ; stdcall calcSizeArch,[hPlugin]
408
;        push    ebp
414
	push	ebp
409
;        stdcall [aSetpos],[hPlugin],0,POSEND
-
 
410
;        pop     ebp
-
 
411
;        add     [numbytes],eax
-
 
412
 
-
 
413
 
415
	stdcall [aSetFolder],[hPlugin], .strRoot,0
414
 
416
	pop	ebp
415
;unpack
417
;unpack
416
;       void __stdcall GetFiles(HANDLE hPlugin, int NumItems, void* items[], void* addfile, void* adddir);
418
;       void __stdcall GetFiles(HANDLE hPlugin, int NumItems, void* items[], void* addfile, void* adddir);
417
	push	ebp
419
	push	ebp
Line 418... Line 420...
418
	stdcall [aGetFiles], [hPlugin], -1, 0, myAddFile, myAddDir
420
	stdcall [aGetFiles], [hPlugin], -1, 0, myAddFile, myAddDir
419
	pop	ebp
421
	pop	ebp
-
 
422
 
420
 
423
jmp @f
Line 421... Line 424...
421
;jmp @f
424
   .str1 db '/LICENSE.txt',0
422
;   .str1 db '/LICENSE.txt',0
425
   .strRoot db '.svn',0
423
;@@:
426
@@:
424
 
427
 
Line 489... Line 492...
489
	int3
492
	int3
490
	ret
493
	ret
491
endp
494
endp
Line -... Line 495...
-
 
495
 
-
 
496
 
-
 
497
allnumbytes dd 0
492
 
498
strBackFold db '../',0
493
 
499
 
494
proc calcSizeArch hPlugin:dword
500
proc calcSizeArch hPlugin:dword
-
 
501
locals
495
locals
502
  bdwk rb 560
496
  bdwk rb 560
503
  num	rd 1
497
endl
504
endl
-
 
505
;int __stdcall ReadFolder(HANDLE hPlugin, unsigned dirinfo_start,
498
;int __stdcall ReadFolder(HANDLE hPlugin, unsigned dirinfo_start,
506
;        unsigned dirinfo_size, void* dirdata);
-
 
507
	mov	[num],0
499
;        unsigned dirinfo_size, void* dirdata);
508
    ;    int3
500
int3
509
.mainloop:
501
	push	ebp
510
	push	ebp
502
	lea	eax,[bdwk]
511
	lea	eax, [bdwk]
Line 503... Line 512...
503
	stdcall [aReadFolder], [hPlugin],1,560,eax
512
	stdcall [aReadFolder], [hPlugin],[num],1,eax
504
	pop	ebp
513
	pop	ebp
505
 
514
 
506
	ret
515
	cmp	eax,6
-
 
516
	je	.lastFile
-
 
517
;??????????????????????????????????????????????????????????????????????????????????????????????????
507
endp
518
	lea	ebx,[bdwk+0x20]      ;¯®ç¥¬ã «¨¡  ¯¨è¥â ¢ ᬥ饭¨¥ +0x20 - ­¥¨§¥áâ­®
-
 
519
	test	[ebx],dword 10h
Line -... Line 520...
-
 
520
	jz	@f
-
 
521
;bool __stdcall SetFolder(HANDLE hPlugin, const char* relative_path,
508
;-------------------------------------------------------------------------------
522
;                         const char* absolute_path);
-
 
523
 
-
 
524
	push	ebp
509
;-------------------------------------------------------------------------------
525
	lea	eax,[ebx+40]
Line 510... Line -...
510
;-------------------------------------------------------------------------------
-
 
511
 
526
dps 'Folder: '
512
;SayErr  int num_strings, const char* strings[],
527
dpsP eax
513
;                      int num_buttons, const char* buttons[]);
528
dnl
514
 
-
 
515
proc SayErr num_strings:dword, strings:dword,num_buttons:dword, buttons:dword
529
	stdcall [aSetFolder],[hPlugin], eax,0
516
	pushad
530
 
517
	cmp	[num_strings],1
-
 
518
	je	@f
-
 
519
	m2m	[errmess0], strErrorExc
-
 
Line -... Line 531...
-
 
531
	pop	ebp
-
 
532
	stdcall calcSizeArch, [hPlugin]
-
 
533
	inc	[num]
-
 
534
	jmp	.mainloop
-
 
535
   @@:
-
 
536
 
-
 
537
	lea	ebx,[bdwk+0x20]
-
 
538
lea	eax,[ebx+40]
-
 
539
dps 'File: '
-
 
540
dpsP eax
-
 
541
dnl
-
 
542
	mov	eax,[ebx+32]
520
	jmp	.l1
543
	add	[allnumbytes],eax
-
 
544
	inc	[num]
-
 
545
	jmp	.mainloop
521
       @@:
546
 
-
 
547
.lastFile:
-
 
548
;        lea     ebx,[bdwk+0x20]
-
 
549
;        test    [ebx],dword 10h
-
 
550
;        jz      @f
-
 
551
;
-
 
552
;        push    ebp
Line 522... Line 553...
522
	mov	ebx,[strings]
553
;        lea     eax,[ebx+40]
-
 
554
;        stdcall [aSetFolder],[hPlugin], eax,0
523
	m2m	[errmess0], dword [ebx]
555
;        pop     ebp
524
       .l1:
556
;        stdcall calcSizeArch, [hPlugin]
525
 
557
;    @@:
Line 526... Line -...
526
	m2m	[fsRunNotifyOK.param],[errmess0]
-
 
527
	mcall	70,fsRunNotifyOK
-
 
528
 
-
 
529
	popad
-
 
530
	mov	eax,1
-
 
531
	ret
-
 
532
endp
-
 
533
 
-
 
534
;-------------------------------------------------------------------------------
-
 
535
;-------------------------------------------------------------------------------
-
 
536
;-------------------------------------------------------------------------------
-
 
537
    ; "enter password" dialog for KFar
-
 
538
;password_dlg:
-
 
539
;        dd      1       ; use standard dialog colors
-
 
540
;        dd      -1      ; center window by x
-
 
541
;        dd      -1      ; center window by y
-
 
542
;.width  dd      ?       ; width (will be filled according to current console width)
-
 
543
;        dd      2       ; height
-
 
544
;        dd      4, 2    ; border size
-
 
545
;        dd      aEnterPasswordTitle     ; title
-
 
546
;        dd      ?       ; colors (will be set by KFar)
-
 
547
;        dd      0       ; used internally by dialog manager, ignored
-
 
548
;        dd      0, 0    ; reserved for DlgProc
-
 
549
;        dd      2       ; 2 controls
-
 
550
;; the string "enter password"
-
 
551
;        dd      1       ; type: static
-
 
552
;        dd      1,0     ; upper-left position
-
 
553
;.width1 dd      ?,0     ; bottom-right position
-
 
554
;        dd      aEnterPassword  ; data
-
 
Line -... Line 558...
-
 
558
 
-
 
559
 
-
 
560
	push	ebp
-
 
561
	stdcall [aSetFolder],[hPlugin], strBackFold,0
-
 
562
	pop	ebp
-
 
563
	ret
-
 
564
endp
-
 
565
 
-
 
566
 
-
 
567
proc rec_calcSize hPlugin:dword
-
 
568
locals
Line 555... Line -...
555
;        dd      0       ; flags
-
 
556
;; editbox for password
-
 
557
;        dd      3       ; type: edit
-
 
558
;        dd      1,1     ; upper-left position
-
 
559
;.width2 dd      ?,0     ; bottom-right position
-
 
560
;        dd      password_data   ; data
-
 
561
;        dd      2Ch     ; flags
-
 
562
 
-
 
563
 
-
 
564
 
-
 
565
proc DialogBox dlgInfo:dword
-
 
566
	pushad
-
 
567
	mov	ebx,[dlgInfo]
-
 
568
	mov	eax,[ebx+19*4]
-
 
569
	mov	[forpassword],eax
-
 
570
	mov	byte[eax], 0
-
 
571
	mov	[stateDlg], 0
-
 
572
	mcall	51,1,threadDialogBox,stackDlg
-
 
573
 
-
 
574
	;wait thread...
-
 
575
    @@: cmp	[stateDlg],0
-
 
576
	jne	@f
-
 
577
	mcall	5,1
569
  bdwk rb 560
578
	jmp	@b
570
endl
-
 
571
;int __stdcall ReadFolder(HANDLE hPlugin, unsigned dirinfo_start,
-
 
572
;        unsigned dirinfo_size, void* dirdata);
-
 
573
;bool __stdcall SetFolder(HANDLE hPlugin, const char* relative_path, const char* absolute_path);
Line 579... Line -...
579
     @@:
-
 
580
	popad
-
 
581
	cmp	[stateDlg], 1
-
 
582
	jne	@f
-
 
583
	xor	eax, eax
-
 
584
	ret
-
 
585
    @@:
-
 
586
	or	eax, -1
-
 
587
	ret
-
 
588
endp
-
 
589
 
574
	push	ebp
590
proc threadDialogBox
-
 
591
 
-
 
592
	mcall	40, 100111b+0C000000h
-
 
593
	mov	eax,[forpassword]
-
 
594
	mov	[edtPassword+4*9],eax
-
 
595
	xor	eax,eax
-
 
596
	mov	dword[edtPassword.size], eax
-
 
597
	mov	dword[edtPassword.pos], eax
-
 
598
 
-
 
599
.wm_redraw:
-
 
600
	mcall	12, 1
-
 
601
	mcall	48, 3, sc, sizeof.system_colors
-
 
602
	mov	edx, [sc.work]
-
 
603
	or	edx, 0x33000000
-
 
604
	mcall	0, <200,320>, <200,140>, , , title
-
 
605
 
-
 
606
	edit_boxes_set_sys_color edtPack,endEdits,sc
-
 
607
	stdcall [edit_box_draw],edtPassword
-
 
608
 
-
 
609
 
-
 
610
	mov	ecx,[sc.work_text]
-
 
611
	or	ecx,90000000h
-
 
612
	mcall 4, <56,12>, , strGetPass
-
 
613
 
-
 
614
	mcall 8, <70,80>,<74,22>,2,[sc.work_button]
-
 
615
	mov	ecx,[sc.work_button_text]
-
 
616
	or	ecx,90000000h
-
 
617
	mcall 4, <103,79>, , strOk
-
 
618
 
-
 
619
	mcall 8, <165,80>,<74,22>,1,[sc.work_button]
-
 
620
	mov	ecx,[sc.work_button_text]
-
 
621
	or	ecx,90000000h
-
 
622
	mcall 4, <182,79>, , strCancel
-
 
623
 
-
 
624
 
-
 
625
	mcall 12, 2
-
 
626
 
-
 
627
.still:
-
 
628
	mcall	10
-
 
629
	cmp	eax, 1
-
 
630
	je	.wm_redraw
-
 
631
	cmp	eax, 2
-
 
632
	je	.wm_key
-
 
633
	cmp	eax, 3
-
 
Line 634... Line 575...
634
	je	.wm_button
575
	lea	eax,[bdwk]
635
	cmp	eax, 6
-
 
Line 636... Line 576...
636
	je	.wm_mouse
576
	stdcall [aReadFolder], [hPlugin],1,560,eax
637
 
577
	pop	ebp
638
	jmp	.still
-
 
639
 
-
 
640
.wm_key:
578
 
641
	mcall	2
579
	ret
642
	stdcall [edit_box_key],edtPassword
580
endp
643
	jmp	.still
581
;-------------------------------------------------------------------------------
644
 
582
;-------------------------------------------------------------------------------
645
 
-
 
Line -... Line 583...
-
 
583
;-------------------------------------------------------------------------------
646
.wm_button:
584
 
647
	mcall	17
585
hTrPlugin dd 0
-
 
586
 
-
 
587
;eax - file struct for sys70
-
 
588
 
-
 
589
proc rdFoldforTree
-
 
590
locals
Line -... Line 591...
-
 
591
  fi rd 0
-
 
592
endl
Line 648... Line -...
648
 
-
 
-
 
593
	cmp	[hTrPlugin],0
Line -... Line 594...
-
 
594
	je	.exit
649
	cmp	ah, 2		;OK
595
	push	ebx edi esi
650
	jne	@f
596
 
651
	mov	[stateDlg],1
597
	mov	[fi],eax
Line 652... Line -...
652
	jmp	.exit
-
 
653
    @@:
598
	push	ebp
Line 654... Line 599...
654
 
599
	stdcall [aSetFolder],[hTrPlugin], [eax+20],0
Line 677... Line 622...
677
 
622
 
678
bWinChild db 0	;1 - ¤®ç¥à­¥¥ ®ª­® ¥áâì, £« ¢­®¥ ®ª­® ­¥ ¤®«¦­® ॠ£¨à®¢ âì
623
bWinChild db 0	;1 - ¤®ç¥à­¥¥ ®ª­® ¥áâì, £« ¢­®¥ ®ª­® ­¥ ¤®«¦­® ॠ£¨à®¢ âì
Line 679... Line 624...
679
redInput  db 0	;1 - ¯®¤á¢¥â¨âì ªà á­ë¬ ­ ¤¯¨áì
624
redInput  db 0	;1 - ¯®¤á¢¥â¨âì ªà á­ë¬ ­ ¤¯¨áì
680
 
625
 
681
if lang eq ru
626
if lang eq ru
682
 title db 'uNZ v0.12 -  á¯ ª®¢é¨ª Zip ¨ 7z',0
627
 title db 'uNZ v0.2 -  á¯ ª®¢é¨ª Zip ¨ 7z',0
683
 strGo db ' á¯ ª®¢ âì',0
628
 strGo db ' á¯ ª®¢ âì',0
684
 strInp db  '    €à娢',0
629
 strInp db  '    €à娢',0
685
 strPath db 'ˆ§¢«¥çì ¢',0
630
 strPath db 'ˆ§¢«¥çì ¢',0
Line 691... Line 636...
691
 strUnpackOk  db "'“ᯥ譮 à á¯ ª®¢ ­®' -O",0
636
 strUnpackOk  db "'“ᯥ譮 à á¯ ª®¢ ­®' -O",0
692
 strUnpackFault  db "'Žè¨¡ª  à á¯ ª®¢ª¨' -E",0
637
 strUnpackFault  db "'Žè¨¡ª  à á¯ ª®¢ª¨' -E",0
693
 strNotSupport db "'¥¯®¤¤¥à¦¨¢ ¥¬ë© ä®à¬ â  à娢 ' -E",0
638
 strNotSupport db "'¥¯®¤¤¥à¦¨¢ ¥¬ë© ä®à¬ â  à娢 ' -E",0
694
 strNotFound db "'” ©« ­¥ ­ ©¤¥­' -E",0
639
 strNotFound db "'” ©« ­¥ ­ ©¤¥­' -E",0
695
else if lang eq es
640
else if lang eq es
696
 title db 'uNZ v0.12 - Desarchivador para Zip y 7z',0
641
 title db 'uNZ v0.2 - Desarchivador para Zip y 7z',0
697
 strGo db 'Desarchivar',0
642
 strGo db 'Desarchivar',0
698
 strInp db 'Archivar',0
643
 strInp db 'Archivar',0
699
 strPath db 'Extraer en',0
644
 strPath db 'Extraer en',0
700
 strError db 'Error',0
645
 strError db 'Error',0
701
 strErrorExc db 'Error desconocido',0
646
 strErrorExc db 'Error desconocido',0
Line 705... Line 650...
705
 strUnpackOk db "'Extracion exitosa' -O",0
650
 strUnpackOk db "'Extracion exitosa' -O",0
706
 strUnpackFault db "'Fallo al extraer' -E",0
651
 strUnpackFault db "'Fallo al extraer' -E",0
707
 strNotSupport db "'El formato del archivo no es soportado' -E",0
652
 strNotSupport db "'El formato del archivo no es soportado' -E",0
708
 strNotFound db "'Archivo no encontrado' -E",0
653
 strNotFound db "'Archivo no encontrado' -E",0
709
else
654
else
710
 title db 'uNZ v0.12 - Unarchiver of Zip and 7z',0
655
 title db 'uNZ v0.2 - Unarchiver of Zip and 7z',0
711
 strGo db   'Unpack',0
656
 strGo db   'Unpack',0
712
 strInp db  'Archive',0
657
 strInp db  'Archive',0
713
 strPath db 'Extract to',0
658
 strPath db 'Extract to',0
714
 strError db 'Error',0
659
 strError db 'Error',0
715
 strErrorExc db 'Unrecognized error',0
660
 strErrorExc db 'Unrecognized error',0
Line 720... Line 665...
720
 strUnpackFault  db "'Unprack failed' -E",0
665
 strUnpackFault  db "'Unprack failed' -E",0
721
 strNotSupport db "'Archive format is not supported' -E",0
666
 strNotSupport db "'Archive format is not supported' -E",0
722
 strNotFound db "'File not found' -E",0
667
 strNotFound db "'File not found' -E",0
723
end if
668
end if
Line -... Line 669...
-
 
669
 
724
 
670
 
725
strNull db 0
671
 
Line 726... Line 672...
726
strDots db '...',0
672
strDots db '...', 0
727
 
673
 
728
;--------
674
;--------
Line 762... Line 708...
762
	dd	0	;cur_width
708
	dd	0	;cur_width
763
.size = $ - kfar_info
709
.size = $ - kfar_info
764
;--------
710
;--------
Line 765... Line 711...
765
 
711
 
766
 
712
 
Line 767... Line 713...
767
iFiles dd 0	;ª®«¨ç¥á⢮ ¢ë£à㦠¥¬ëå ä ©«®¢
713
iFiles dd 0	;ª®«¨ç¥á⢮ à á¯ ª®¢ë¢ ¥¬ëå ä ©«®¢
768
endPointer dd buffer
714
endPointer dd buffer
Line 826... Line 772...
826
	db '/sys/@notify',0
772
	db '/sys/@notify',0
Line 827... Line 773...
827
 
773
 
828
 
774
 
829
 
775
 
830
edtPack     edit_box (WIN_W-100-60),100,10,0FFFFFFh,0xff,0x80ff,0h,0x90000000,\
776
edtPack     edit_box (WIN_W-100-60),100,10,0FFFFFFh,0xff,0x80ff,0h,0x90000000,\
831
            255, fInp, mouse_dd,0,0,0
777
            255, fInp, 0,0,0,0
832
edtUnpPath  edit_box (WIN_W-100-60),100,35,0FFFFFFh,0xff,0x80ff,0h,0x90000000,\
778
edtUnpPath  edit_box (WIN_W-100-60),100,35,0FFFFFFh,0xff,0x80ff,0h,0x90000000,\
833
            255, pathOut, mouse_dd,0,0,0
779
            255, pathOut, 0,0,0,0
Line -... Line 780...
-
 
780
edtPassword edit_box 200,56,70,0FFFFFFh,0xff,0x80ff,0h,0x90000000,255,\
-
 
781
		password, 0,0,0,0
834
edtPassword edit_box 200,56,70,0FFFFFFh,0xff,0x80ff,0h,0x90000000,255,\
782
endEdits:
835
		password, mouse_dd,0,0,0
783
 
836
endEdits:
784
 
837
 
785
 
838
;-------------------------------------------------------------------------------
786
;-------------------------------------------------------------------------------
Line 912... Line 860...
912
	edit_box_mouse		,'edit_box_mouse'
860
	edit_box_mouse		,'edit_box_mouse'
Line 913... Line 861...
913
 
861
 
Line -... Line 862...
-
 
862
 
914
 
863
IncludeIGlobals
915
IncludeIGlobals
864
 
916
 
865
params1 db '-o "/hd0/1/unz/pig" -h "/hd0/1/unz/abc1"',0
917
;--  UDATA  -----------------------------------------------------------------------------
866
;--  UDATA  -----------------------------------------------------------------------------
Line -... Line 867...
-
 
867
init_end:
Line 918... Line 868...
918
init_end:
868
align 16
919
align 16
869
IncludeUGlobals
920
IncludeUGlobals
-
 
921
 
-
 
Line 922... Line 870...
922
 
870
 
923
;params db 'unz -o "fil epar1" -f "arch1.txt" -f "ar ch2.txt" file1',0
871
path rb 512
924
;params db 'unz -o "fil epar1" -f arch1.txt -f "ar ch2.txt" file1',0
872
 
925
;params db '/hd0/1/unz/xboot-1-0-build-14-en-win.zip',0
873
;params db 'unz -o "fil epar1" -f "arch1.txt" -f "ar ch2.txt" file1',0
Line 926... Line 874...
926
;rb 4096
874
;params db 'unz -o "fil epar1" -f arch1.txt -f "ar ch2.txt" file1',0
Line 927... Line -...
927
 
-
 
928
fInp	rb 1024
875
 
929
pathOut rb 1024
876
fInp	rb 1024
930
files	rd 256
877
pathOut rb 1024 	;¯ãâì, ªã¤  à á¯ ªã¥âáï ¢áñ
Line 952... Line 899...
952
CopyDestEditBuf 	rb	12+512+1
899
CopyDestEditBuf 	rb	12+512+1
953
.length = $ - CopyDestEditBuf - 13
900
.length = $ - CopyDestEditBuf - 13
Line 954... Line 901...
954
 
901
 
Line -... Line 902...
-
 
902
bdvkPack rb 560
-
 
903
 
-
 
904
 
-
 
905
 
-
 
906
;------------ memory_manager.inc
-
 
907
align 4
-
 
908
MM_NBlocks	rd 1  ;ª®«¨ç¥á⢮ ¢ë¤¥«¥­­ëå ¡«®ª®¢ ¯ ¬ïâ¨
-
 
909
MM_BlocksInfo	rd 2*MM_MAX_BLOCKS  ;begin,size
955
bdvkPack rb 560
910
 
Line 956... Line 911...
956
 
911
 
957
;--------
912
;--------
Line 958... Line 913...
958
 
913
 
959
buffer	rb 4096 ;for string of file name or extract
914
buffer	rb 4096 ;for string of file name for extract