27,7 → 27,8 |
; al = ª®¤ ®è¨¡ª¨ |
align 4 |
ted_on_init_synt_err: |
mov byte[msgbox_3.err],al |
mov byte[msgbox_3.err],'0' |
add byte[msgbox_3.err],al |
stdcall [mb_create],msgbox_3,thread ;message: Can-t open color options file! |
ret |
|
117,8 → 118,39 |
mov [edit1.size],eax |
mov [edit1.pos],eax |
stdcall [edit_box_draw], edit1 |
|
;¨é¥¬ ¥áâì «¨ ä ©« ¯®¤á¢¥âª¨ ¤«ï ®âªàë¢ ¥¬®£® ⥪á⮢®£® ä ©« |
mov edx,[edit1.text] |
add edx,eax |
.f_beg: |
cmp byte[edx],'.' |
je .found |
dec edx |
cmp edx,[edit1.text] |
jg .f_beg |
.found: |
inc edx ;edx - 㪠§ ⥫ì à áè¨à¥¨¥ ®âªàë⮣® ä ©« |
|
mov ebx,synt_auto_open |
.cycle_0: |
add ebx,32 |
stdcall strcmp,ebx,edx ;áà ¢¨¢ ¥¬ à áè¨à¥¨¥ ®âªàë⮣® ä ©« á® § 票ﬨ ®âªàëâ묨 á ini ä ©« |
test eax,eax |
jz .ok |
add ebx,32 |
cmp byte[ebx],0 |
jne .cycle_0 |
jmp .end_0 |
.ok: ;®âªàë⨥ ä ©« ¯®¤á¢¥âª¨ ¢ § ¢¨á¨¬®á⨠®â ©¤¥®£® à áè¨à¥¨ï |
sub ebx,32 |
;mov ecx,ebx |
;mcall 71,1 |
call open_unpac_synt_file |
.end_0: |
|
stdcall [ted_open_file], tedit0,run_file_70,[edit1.text] |
call ted_messages_after_open_file |
|
.ret_f: |
popad |
ret |
154,7 → 186,6 |
;input: |
; eax = ª®¤ ®è¨¡ª¨ |
; ebx = ª®««¨ç¥á⢮ ¯à®ç¨â ëå ¡ ©â |
; edi = pointer to tedit struct |
align 4 |
ted_messages_after_open_file: |
push ecx edi |
202,9 → 233,6 |
stdcall dword[tl_node_get_data], tree1 |
pop dword[fn_col_option] |
mov ebx,dword[fn_col_option] |
copy_path ebx,fn_syntax_dir,file_name_rez,0x0 |
copy_path file_name_rez,sys_path,file_name,0x0 |
|
call open_unpac_synt_file |
cmp ebx,-1 |
je @f |
216,11 → 244,27 |
endp |
|
;®âªàë⨥ ¨ à ᯠª®¢ª ä ©« ¯®¤á¢¥âª¨ á¨â ªá¨á |
;input: |
; ebx - 㪠§ â¥«ì ¨¬ï ®âªàë¢ ¥¬®£® ä ©« á¨â ªá¨á (¡¥§ ¯ã⨠¨ ¯ ¯ª¨ info) |
;output: |
; ebx - ç¨á«® ¯à®ç¨â ëå ¡ ©â ¨§ ä ©« |
; ecx - à §àãè ¥âáï |
align 4 |
open_unpac_synt_file: |
push eax edi esi |
mov edi,last_open_synt_file |
stdcall strcmp,ebx,edi ;áà ¢¨¢ ¥¬ ¨¬ï ¯®¤ª«î祮£® ä ©« á ¯®¤ª«îç¥ë¬ à ¥¥ ä ©«®¬ |
test eax,eax |
jz @f |
|
;ª®¯¨à㥬 ¨¬ï ¯®¤ª«î祮£® ä ©« (¤«ï ¨§¡¥¦ ¨ï ¯®¢â®àëå ¯®¤ª«î票©) |
mov esi,ebx |
mov ecx,32 |
cld |
rep movsb |
|
copy_path ebx,fn_syntax_dir,file_name_rez,0 |
copy_path file_name_rez,sys_path,file_name,0 |
mov edi, tedit0 |
mov [run_file_70.Function], 0 |
mov [run_file_70.Position], 0 |