Subversion Repositories Kolibri OS

Rev

Rev 3731 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3731 Rev 7801
Line 73... Line 73...
73
    jmp   open_file_with_appl.1
73
    jmp   open_file_with_appl.1
74
;---------------------------------------------------------------------
74
;---------------------------------------------------------------------
75
open_file_with_appl:
75
open_file_with_appl:
76
; edx - start file name
76
; edx - start file name
77
; esi - start extension
77
; esi - start extension
78
    mov   ebp,files_associations
78
    ;mov   ebp,files_associations     ;Leency
79
.1:
79
.1:
-
 
80
	
80
    mov   [extension_start],esi
81
    ; mov   [extension_start],esi     ;Leency: do not get file assoc 
81
    call  search_star_and_end_tags
82
    ; call  search_star_and_end_tags  ;from KFM.INI, use /sys/@open
82
    cmp   ebp,-1
83
    ; cmp   ebp,-1
83
    je	  .end
84
    ; je	  .end
84
    call  normalize_extension_of_file
85
    ; call  normalize_extension_of_file
85
.search_association:
86
; .search_association:
86
    cmp   [end_tag],edi
87
    ; cmp   [end_tag],edi
87
    jbe   .end
88
    ; jbe   .end
88
    mov   esi,extension_temp_storage
89
    ; mov   esi,extension_temp_storage
89
    mov   ecx,[extension_size]
90
    ; mov   ecx,[extension_size]
90
    inc   edi
91
    ; inc   edi
91
    cld
92
    ; cld
92
    push   edi
93
    ; push   edi
93
    rep  cmpsb
94
    ; rep  cmpsb
94
    pop    edi
95
    ; pop    edi
95
    jne   .search_association
96
    ; jne   .search_association
96
    push  esi
97
    ; push  esi
97
    mov   esi,edi
98
    ; mov   esi,edi
98
    add   esi,[extension_size] ;4
99
    ; add   esi,[extension_size] ;4
99
    cmp   [esi],byte ' '
100
    ; cmp   [esi],byte ' '
100
    je	  @f
101
    ; je	  @f
101
    pop   esi
102
    ; pop   esi
102
    jmp   .search_association
103
    ; jmp   .search_association
103
@@:
104
; @@:
104
    add   esp,4
105
    ; add   esp,4
105
    inc   esi
106
    ; inc   esi
106
    mov   edi,file_name  ;start_file_data.name
107
    ; mov   edi,file_name  ;start_file_data.name
107
    xor   eax,eax
108
    ; xor   eax,eax
108
@@:
109
; @@:
109
    cld
110
    ; cld
110
    lodsb
111
    ; lodsb
111
    stosb
112
    ; stosb
112
    cmp    al,' '
113
    ; cmp    al,' '
113
    cmp   al,13
114
    ; cmp   al,13
114
    jnz   @b
115
    ; jnz   @b
115
    mov   [edi-1],byte 0 ;'#'
116
    ; mov   [edi-1],byte 0 ;'#'
116
    cmp   [use_patch],0
117
    ; cmp   [use_patch],0
117
    je	  @f
118
    ; je	  @f
118
    mov   [use_patch],0
119
    ; mov   [use_patch],0
-
 
120
 
119
    jmp   .continue
121
.run_sysopen:
120
@@:
122
@@:
121
    cmp   [select_panel_counter],0
123
    cmp   [select_panel_counter],0
122
    jne   @f
124
    jne   @f
123
    mov   esi,read_folder_name	    ;read_folder.name
125
    mov   esi,read_folder_name	    ;read_folder.name
124
    jmp   .start
126
    jmp   .start
Line 152... Line 154...
152
    stosb
154
    stosb
153
    test  eax,eax
155
    test  eax,eax
154
    jnz   @b
156
    jnz   @b
155
.continue:
157
.continue:
156
    mov   [start_file_data.param],start_parameter
158
    mov   [start_file_data.param],start_parameter
157
    call  start_appl
159
    ;call  start_appl ;Leency
-
 
160
	mcall 70,sysopen  ;Leency
158
    cmp   eax,0
161
    cmp   eax,0
159
    jge   @f
162
    jge   @f
160
    mov  ebx,0
163
    mov  ebx,0
161
    sub  ebx,eax
164
    sub  ebx,eax
162
    mov  eax,ebx
165
    mov  eax,ebx