Subversion Repositories Kolibri OS

Rev

Rev 1583 | Rev 1595 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1583 Rev 1588
Line 71... Line 71...
71
@use_library
71
@use_library
Line 72... Line 72...
72
 
72
 
73
lang fix en
73
lang fix en
74
;purge mov
74
;purge mov
75
include 'debug.inc'
75
include 'debug.inc'
76
include 'dlg.inc'
76
;include 'dlg.inc'
77
include 'playlist.inc'
77
include 'playlist.inc'
78
include 'gif_lite.inc'
78
include 'gif_lite.inc'
79
bottom:
79
bottom:
80
    file 'bottom.gif'
80
    file 'bottom.gif'
Line 135... Line 135...
135
    mov  [param],'W'
135
    mov  [param],'W'
136
    or	 [flag],FL_ADD
136
    or	 [flag],FL_ADD
137
;---------------------------------------------------------------------
137
;---------------------------------------------------------------------
138
;OpenDialog_start:
138
;OpenDialog_start:
139
;	copy_path	open_dialog_name,path,library_path,0
139
;	copy_path	open_dialog_name,path,library_path,0
140
	
-
 
-
 
140
	mov	[OpenDialog_data.type],0	; Open
-
 
141
	or	[flag],FL_LOCK	
141
	push    dword OpenDialog_data
142
	push    dword OpenDialog_data
142
	call    [OpenDialog_Start]
143
	call    [OpenDialog_Start]
143
 
-
 
-
 
144
	and	[flag],not FL_LOCK
144
	cmp	[OpenDialog_data.status],2 ; OpenDialog does not start
145
;	cmp	[OpenDialog_data.status],2 ; OpenDialog does not start
145
	je	.fopen  ; 	some kind of alternative, instead OpenDialog
146
;	je	.fopen  ; 	some kind of alternative, instead OpenDialog
146
	cmp	[OpenDialog_data.status],1
147
	cmp	[OpenDialog_data.status],1
147
	je	open_file
148
;	je	open_file
148
	jmp	still
149
;	jmp	still
-
 
150
	jne	still
149
;---------------------------------------------------------------------
151
;---------------------------------------------------------------------
Line 150... Line 152...
150
 
152
 
151
.fopen:
153
;.fopen:
152
    call fopen
154
;    call fopen
153
  get_path:
155
;  get_path:
154
    cmp  byte[filename],0
156
;    cmp  byte[filename],0
155
    jz	 still
157
;    jz	 still
156
  open_file:
158
  open_file:
157
    cmp  [param],'W'
159
    cmp  [param],'W'
158
    je	 .noplay
160
    je	 .noplay
159
    cmp  [param],'H'
161
    cmp  [param],'H'
Line 321... Line 323...
321
    mov  eax,edi
323
    mov  eax,edi
322
  .nofn:
324
  .nofn:
323
    pop  edi ecx
325
    pop  edi ecx
324
    ret
326
    ret
Line 325... Line 327...
325
 
327
 
326
fopen:
328
;fopen:
327
    or	 [flag],FL_LOCK
329
;    or	 [flag],FL_LOCK
328
    opendialog draw_window, ret_path, ret_path, filename
330
;;    opendialog draw_window, ret_path, ret_path, filename
329
ret_path:
331
;ret_path:
330
    and  [flag],not FL_LOCK
332
;    and  [flag],not FL_LOCK
Line 331... Line 333...
331
    ret
333
;    ret
332
 
334
 
333
include 'event.inc'
335
include 'event.inc'
334
include "thread.inc"
336
include "thread.inc"
Line 489... Line 491...
489
	rb 4096
491
	rb 4096
490
thread_stack:
492
thread_stack:
491
	rb 4096
493
	rb 4096
492
stacktop:
494
stacktop:
493
;----------------------------------------------------------------
495
;----------------------------------------------------------------
-
 
496
dir_table:
494
dir_table  rb 32+304
497
	rb 32+304
495
workarea:
498
workarea:
496
	rb 120*1024
499
	rb 120*1024
497
I_END:
500
I_END:
498
text_end:
501
text_end: