Subversion Repositories Kolibri OS

Rev

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

Rev 1792 Rev 3731
Line 1... Line 1...
1
;---------------------------------------------------------------------
1
;---------------------------------------------------------------------
2
get_icon_number:
2
get_icon_number:
3
    mov   ebp,[extension_size]	;[icons_end_tag]
3
    mov   ebp,[extension_size]	;[icons_end_tag]
-
 
4
    test  ebp,ebp
-
 
5
    jz    .end
-
 
6
    call  normalize_extension_of_file
4
    mov   edx,[icons_end_tag]
7
    mov   edx,[icons_end_tag]
5
    mov   edi,[ini_file_start]
8
    mov   edi,[ini_file_start]
6
    dec   edi
9
    dec   edi
7
.search_association:
10
.search_association:
8
    cmp   edx,edi
11
    cmp   edx,edi
9
    jbe   .end
12
    jbe   .end
10
    mov   esi,[extension_start]
13
    mov   esi,extension_temp_storage
11
    mov   ecx,ebp
14
    mov   ecx,ebp
12
    test  ecx,ecx
15
    test  ecx,ecx
13
    je	  @f
16
    je	  @f
14
    sub   ecx,2
17
    sub   ecx,2
15
@@:
18
@@:
Line 49... Line 52...
49
    cld
52
    cld
50
    lodsb
53
    lodsb
51
    sub   eax,0x30
54
    sub   eax,0x30
52
    ret
55
    ret
53
;---------------------------------------------------------------------
56
;---------------------------------------------------------------------
-
 
57
normalize_extension_of_file:
-
 
58
    push  edi
-
 
59
    mov   esi,[extension_start]
-
 
60
    mov   edi,extension_temp_storage
-
 
61
    cld
-
 
62
@@:
-
 
63
    lodsb
-
 
64
    call  char_todown
-
 
65
    stosb
-
 
66
    test  al,al
-
 
67
    jnz   @b
-
 
68
    pop   edi
-
 
69
    ret
-
 
70
;---------------------------------------------------------------------
54
open_file_with_appl_1:
71
open_file_with_appl_1:
55
    mov   ebp,files_associations_1
72
    mov   ebp,files_associations_1
56
    jmp   open_file_with_appl.1
73
    jmp   open_file_with_appl.1
57
;---------------------------------------------------------------------
74
;---------------------------------------------------------------------
58
open_file_with_appl:
75
open_file_with_appl:
Line 62... Line 79...
62
.1:
79
.1:
63
    mov   [extension_start],esi
80
    mov   [extension_start],esi
64
    call  search_star_and_end_tags
81
    call  search_star_and_end_tags
65
    cmp   ebp,-1
82
    cmp   ebp,-1
66
    je	  .end
83
    je	  .end
-
 
84
    call  normalize_extension_of_file
67
.search_association:
85
.search_association:
68
    cmp   [end_tag],edi
86
    cmp   [end_tag],edi
69
    jbe   .end
87
    jbe   .end
70
    mov   esi,[extension_start] ;extension_temp_area
88
    mov   esi,extension_temp_storage
71
    mov   ecx,[extension_size]
89
    mov   ecx,[extension_size]
72
    inc   edi
90
    inc   edi
73
    cld
91
    cld
74
    push   edi
92
    push   edi
75
    rep  cmpsb
93
    rep  cmpsb