/programs/fs/kfm/trunk/data.inc |
---|
202,9 → 202,13 |
delete_dir_data: |
rb 32 |
;--------------------------------------------------------------------- |
align 4 |
extension_temp_storage: |
rb 256 |
;--------------------------------------------------------------------- |
;stack |
align 4 |
rb 512 |
rb 4096 |
stacktop: |
;--------------------------------------------------------------------- |
align 4 |
/programs/fs/kfm/trunk/files.inc |
---|
97,7 → 97,7 |
jne .error |
@@: |
push eax |
call left_files_name_normalize |
; call left_files_name_normalize |
call left_prepare_extension_start |
call left_sort_files |
pop eax |
201,7 → 201,7 |
jne .error |
@@: |
push eax |
call right_files_name_normalize |
; call right_files_name_normalize |
call right_prepare_extension_start |
call right_sort_files |
pop eax |
/programs/fs/kfm/trunk/sort.inc |
---|
254,55 → 254,55 |
jb .start |
ret |
;--------------------------------------------------------------------- |
left_files_name_normalize: |
xor ebp,ebp |
mov esi,[left_folder_data] |
add esi,32+40 |
.start: |
push esi |
mov al,[esi] |
call char_toupper |
mov [esi],al |
@@: |
inc esi |
mov al,[esi] |
test al,al |
jz @f |
call char_todown |
mov [esi],al |
jmp @b |
@@: |
pop esi |
add esi,304 |
inc ebp |
cmp ebp,[left_folder_block] |
jb .start |
ret |
;left_files_name_normalize: |
; xor ebp,ebp |
; mov esi,[left_folder_data] |
; add esi,32+40 |
;.start: |
; push esi |
; mov al,[esi] |
; call char_toupper |
; mov [esi],al |
;@@: |
; inc esi |
; mov al,[esi] |
; test al,al |
; jz @f |
; call char_todown |
; mov [esi],al |
; jmp @b |
;@@: |
; pop esi |
; add esi,304 |
; inc ebp |
; cmp ebp,[left_folder_block] |
; jb .start |
; ret |
;--------------------------------------------------------------------- |
right_files_name_normalize: |
xor ebp,ebp |
mov esi,[right_folder_data] |
add esi,32+40 |
.start: |
push esi |
mov al,[esi] |
call char_toupper |
mov [esi],al |
@@: |
inc esi |
mov al,[esi] |
test al,al |
jz @f |
call char_todown |
mov [esi],al |
jmp @b |
@@: |
pop esi |
add esi,304 |
inc ebp |
cmp ebp,[right_folder_block] |
jb .start |
ret |
;right_files_name_normalize: |
; xor ebp,ebp |
; mov esi,[right_folder_data] |
; add esi,32+40 |
;.start: |
; push esi |
; mov al,[esi] |
; call char_toupper |
; mov [esi],al |
;@@: |
; inc esi |
; mov al,[esi] |
; test al,al |
; jz @f |
; call char_todown |
; mov [esi],al |
; jmp @b |
;@@: |
; pop esi |
; add esi,304 |
; inc ebp |
; cmp ebp,[right_folder_block] |
; jb .start |
; ret |
;--------------------------------------------------------------------- |
right_prepare_extension_start: |
xor ebp,ebp |
/programs/fs/kfm/trunk/tran_ini.inc |
---|
1,6 → 1,9 |
;--------------------------------------------------------------------- |
get_icon_number: |
mov ebp,[extension_size] ;[icons_end_tag] |
test ebp,ebp |
jz .end |
call normalize_extension_of_file |
mov edx,[icons_end_tag] |
mov edi,[ini_file_start] |
dec edi |
7,7 → 10,7 |
.search_association: |
cmp edx,edi |
jbe .end |
mov esi,[extension_start] |
mov esi,extension_temp_storage |
mov ecx,ebp |
test ecx,ecx |
je @f |
51,6 → 54,20 |
sub eax,0x30 |
ret |
;--------------------------------------------------------------------- |
normalize_extension_of_file: |
push edi |
mov esi,[extension_start] |
mov edi,extension_temp_storage |
cld |
@@: |
lodsb |
call char_todown |
stosb |
test al,al |
jnz @b |
pop edi |
ret |
;--------------------------------------------------------------------- |
open_file_with_appl_1: |
mov ebp,files_associations_1 |
jmp open_file_with_appl.1 |
64,10 → 81,11 |
call search_star_and_end_tags |
cmp ebp,-1 |
je .end |
call normalize_extension_of_file |
.search_association: |
cmp [end_tag],edi |
jbe .end |
mov esi,[extension_start] ;extension_temp_area |
mov esi,extension_temp_storage |
mov ecx,[extension_size] |
inc edi |
cld |