forked from KolibriOS/kolibrios
fix load syntax files from CD
git-svn-id: svn://kolibrios.org@8852 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
75fe8b68da
commit
b7f963f4e3
@ -984,7 +984,6 @@ edit_box_key.sh_n:
|
|||||||
edit_box_key.sh_n1:
|
edit_box_key.sh_n1:
|
||||||
call edit_box.check_offset
|
call edit_box.check_offset
|
||||||
call edit_box.get_n
|
call edit_box.get_n
|
||||||
mov edx,eax ;size of ed_box
|
|
||||||
mov ecx,ed_offset
|
mov ecx,ed_offset
|
||||||
add eax,ecx ;eax = w_off= ed_offset+width
|
add eax,ecx ;eax = w_off= ed_offset+width
|
||||||
mov edx,eax ;save
|
mov edx,eax ;save
|
||||||
@ -1223,8 +1222,7 @@ edit_box_key.clear_bg:
|
|||||||
jb @f
|
jb @f
|
||||||
mov eax,ed_pos
|
mov eax,ed_pos
|
||||||
sub ebx,eax
|
sub ebx,eax
|
||||||
mov ecx,ed_offset
|
sub eax,ed_offset
|
||||||
sub eax,ecx
|
|
||||||
jmp edit_box_key.nxt
|
jmp edit_box_key.nxt
|
||||||
|
|
||||||
@@: mov ebx,ed_pos
|
@@: mov ebx,ed_pos
|
||||||
@ -1232,8 +1230,7 @@ edit_box_key.clear_bg:
|
|||||||
sub eax,ebx
|
sub eax,ebx
|
||||||
mov ebx,eax ;It is not optimal
|
mov ebx,eax ;It is not optimal
|
||||||
pop eax ;ed_pos
|
pop eax ;ed_pos
|
||||||
mov ecx,ed_offset
|
sub eax,ed_offset
|
||||||
sub eax,ecx
|
|
||||||
edit_box_key.nxt:
|
edit_box_key.nxt:
|
||||||
mov ebp,eax ;¯à®¢¥àª ¢ë室 § ªà 訢 ¥¬®© ®¡« á⨠§ ¯à¥¤¥«ë ¤«¨ë
|
mov ebp,eax ;¯à®¢¥àª ¢ë室 § ªà 訢 ¥¬®© ®¡« á⨠§ ¯à¥¤¥«ë ¤«¨ë
|
||||||
add ebp,ebx
|
add ebp,ebx
|
||||||
|
@ -762,13 +762,12 @@ proc ted_init_syntax_file, edit:dword
|
|||||||
|
|
||||||
;init: ted_colors_text_count, ted_key_words_count, ...
|
;init: ted_colors_text_count, ted_key_words_count, ...
|
||||||
mov ted_colors_text_count,1
|
mov ted_colors_text_count,1
|
||||||
mov ted_key_words_count,0
|
|
||||||
mov ted_help_text_f1,0
|
mov ted_help_text_f1,0
|
||||||
mov ted_help_id,-1 ;¨¤¥â¨ä¨ª â®à á«®¢ ¤«ï á¯à ¢ª¨
|
mov ted_help_id,-1 ;¨¤¥â¨ä¨ª â®à á«®¢ ¤«ï á¯à ¢ª¨
|
||||||
|
|
||||||
mov eax,edi ;á®åà 塞 § 票¥ edi
|
mov eax,edi ;á®åà 塞 § 票¥ edi
|
||||||
mov esi,ted_syntax_file
|
mov esi,ted_syntax_file
|
||||||
add edi,ted_offs_count_colors
|
add edi,ted_offs_count_colors ;edi = &ted_key_words_count
|
||||||
mov ecx,9
|
mov ecx,9
|
||||||
rep movsd
|
rep movsd
|
||||||
mov edi,eax ;¢®áâ ¢«¨¢ ¥¬ § 票¥ edi
|
mov edi,eax ;¢®áâ ¢«¨¢ ¥¬ § 票¥ edi
|
||||||
@ -783,6 +782,8 @@ proc ted_init_syntax_file, edit:dword
|
|||||||
mov ted_key_words_data,eax
|
mov ted_key_words_data,eax
|
||||||
|
|
||||||
mov ecx,ted_key_words_count ;init: ted_arr_key_pos (first key positions)
|
mov ecx,ted_key_words_count ;init: ted_arr_key_pos (first key positions)
|
||||||
|
or ecx,ecx
|
||||||
|
jz .no_words
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
@@:
|
@@:
|
||||||
ColToIndexOffset eax,edx
|
ColToIndexOffset eax,edx
|
||||||
@ -795,6 +796,7 @@ proc ted_init_syntax_file, edit:dword
|
|||||||
.no_ch_key:
|
.no_ch_key:
|
||||||
inc eax
|
inc eax
|
||||||
loop @b
|
loop @b
|
||||||
|
.no_words:
|
||||||
|
|
||||||
;init: ted_help_text_f1
|
;init: ted_help_text_f1
|
||||||
mov ecx,ted_key_words_count ;ª®«¨ç¥á⢮ ª«î祢ëå á«®¢
|
mov ecx,ted_key_words_count ;ª®«¨ç¥á⢮ ª«î祢ëå á«®¢
|
||||||
|
@ -96,10 +96,15 @@ mov ebp,lib0
|
|||||||
mov dword[tree1.data_img],eax
|
mov dword[tree1.data_img],eax
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
copy_path fn_syntax_dir,sys_path,file_name,0 ;¡¥à¥¬ ¯ãâì ª ¯ ¯ª¥ á ä ©« ¬¨ á¨â ªá¨á
|
copy_path fn_syntax_dir,sys_path,file_name,0 ;¡¥à¥¬ ¯ãâì ª ¯ ¯ª¥ á ä ©« ¬¨ á¨â ªá¨á
|
||||||
|
xor eax,eax
|
||||||
|
mov ecx,4096
|
||||||
|
mov edi,file_name
|
||||||
|
repnz scasb
|
||||||
|
mov byte[edi-2],al ;ã¡¨à ¥¬ '/' ¢ ª®æ¥ ¨¬¥¨ ¯ ¯ª¨ (㦮 ¤«ï ç⥨ï á CD)
|
||||||
mcall SF_FILE,tree_file_struct
|
mcall SF_FILE,tree_file_struct
|
||||||
|
|
||||||
cmp ebx,0
|
or ebx,ebx
|
||||||
jle .end_dir_init
|
jz .end_dir_init
|
||||||
mov eax,dir_mem+32+40
|
mov eax,dir_mem+32+40
|
||||||
mov ecx,ebx
|
mov ecx,ebx
|
||||||
@@:
|
@@:
|
||||||
|
Loading…
Reference in New Issue
Block a user