Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7800 → Rev 7801

/programs/cmm/browser/WebView.c
513,27 → 513,31
return was_changed;
}
 
bool HandleUrlFiles(dword _path, _data)
{
dword url_from_file;
if (!UrlExtIs(_path, "url")) return false;
url_from_file = strstri(_data, "URL=");
if (url_from_file == -1) return false;
replace_char(url_from_file, '\n', '\0', strlen(url_from_file));
OpenPage(url_from_file);
}
 
bool GetLocalFileData(dword _path)
{
dword data, size, url_from_file;
dword data, size;
file_size stdcall (_path);
if (!EBX) {
return false;
} else {
if (!EBX) return false;
 
size = EBX;
data = malloc(size);
ReadFile(0, size, data, _path);
url_from_file = strstri(data, "URL=");
if (UrlExtIs(_path, "url")) && (url_from_file != -1) {
strtrim(url_from_file);
OpenPage(url_from_file);
} else {
if (!HandleUrlFiles(_path, data)) {
LoadInternalPage(data, size);
}
free(data);
return true;
}
}
 
void OpenPage(dword _open_URL)
{
/programs/cmm/browser/texts.h
1,4 → 1,4
char version[]="WebView 2.47";
char version[]="WebView 2.47a";
 
#ifdef LANG_RUS
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0";
/programs/fs/kfm/trunk/data.inc
266,4 → 266,9
align 4
read_folder_3_name:
rb 64
;---------------------------------------------------------------------
align 4
sysopen:
dd 7,0,start_parameter,0,0
db '/sys/@open',0
;---------------------------------------------------------------------
/programs/fs/kfm/trunk/text.inc
1,4 → 1,4
header_text db 'Kolibri File Manager v0.47k',0
header_text db 'Kolibri File Manager v0.48',0
;---------------------------------------------------------------------
fbutton_name:
.f1 db '1 Help',0
/programs/fs/kfm/trunk/tran_ini.inc
75,49 → 75,51
open_file_with_appl:
; edx - start file name
; esi - start extension
mov ebp,files_associations
;mov ebp,files_associations ;Leency
.1:
mov [extension_start],esi
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_temp_storage
mov ecx,[extension_size]
inc edi
cld
push edi
rep cmpsb
pop edi
jne .search_association
push esi
mov esi,edi
add esi,[extension_size] ;4
cmp [esi],byte ' '
je @f
pop esi
jmp .search_association
; mov [extension_start],esi ;Leency: do not get file assoc
; call search_star_and_end_tags ;from KFM.INI, use /sys/@open
; cmp ebp,-1
; je .end
; call normalize_extension_of_file
; .search_association:
; cmp [end_tag],edi
; jbe .end
; mov esi,extension_temp_storage
; mov ecx,[extension_size]
; inc edi
; cld
; push edi
; rep cmpsb
; pop edi
; jne .search_association
; push esi
; mov esi,edi
; add esi,[extension_size] ;4
; cmp [esi],byte ' '
; je @f
; pop esi
; jmp .search_association
; @@:
; add esp,4
; inc esi
; mov edi,file_name ;start_file_data.name
; xor eax,eax
; @@:
; cld
; lodsb
; stosb
; cmp al,' '
; cmp al,13
; jnz @b
; mov [edi-1],byte 0 ;'#'
; cmp [use_patch],0
; je @f
; mov [use_patch],0
 
.run_sysopen:
@@:
add esp,4
inc esi
mov edi,file_name ;start_file_data.name
xor eax,eax
@@:
cld
lodsb
stosb
cmp al,' '
cmp al,13
jnz @b
mov [edi-1],byte 0 ;'#'
cmp [use_patch],0
je @f
mov [use_patch],0
jmp .continue
@@:
cmp [select_panel_counter],0
jne @f
mov esi,read_folder_name ;read_folder.name
154,7 → 156,8
jnz @b
.continue:
mov [start_file_data.param],start_parameter
call start_appl
;call start_appl ;Leency
mcall 70,sysopen ;Leency
cmp eax,0
jge @f
mov ebx,0