/programs/cmm/browser/WebView.c |
---|
89,7 → 89,7 |
#include "tabs.h" |
char default_dir[] = "/rd/1"; |
od_filter filter2 = { 16, "TXT\0HTM\0HTML\0\0" }; |
od_filter filter2 = { 22, "TXT\0HTM\0HTML\0DOCX\0\0" }; |
char editURL[URL_SIZE+1]; |
edit_box address_box = {, PADDING+TSZE*2+PADDING+6, PADDING+3, 0xffffff, |
519,6 → 519,7 |
void OpenPage(dword _open_URL) |
{ |
char new_url[URL_SIZE+1]; |
int unz_id; |
StopLoading(); |
571,6 → 572,13 |
} |
} else { |
//LOCAL PAGE |
if (UrlExtIs(#new_url,".docx")) { |
DeleteFile("/tmp0/1/temp/word/document.xml"); |
CreateDir("/tmp0/1/temp"); |
unz_id = RunProgram("/sys/unz", sprintf(#param, "-o \"/tmp0/1/temp\" -h \"%s\"", #new_url)); |
while (GetProcessSlot(unz_id)) pause(2); |
strcpy(#new_url, "/tmp0/1/temp/word/document.xml"); |
} |
if (!GetLocalFileData(#new_url)) { |
LoadInternalPage(#page_not_found, sizeof(page_not_found)); |
} |
/programs/cmm/browser/texts.h |
---|
1,4 → 1,4 |
char version[]="WebView 2.41"; |
char version[]="WebView 2.45"; |
#ifdef LANG_RUS |
char page_not_found[] = FROM "html\\page_not_found_ru.htm""\0"; |
/programs/cmm/lib/patterns/simple_open_dialog.h |
---|
1,7 → 1,7 |
struct od_filter |
{ |
dword size; //size = len(#ext) + sizeof(dword) |
char ext[16]; |
char ext[25]; |
}; |
proc_info pr_inf; |
/programs/demos/3DS/DATA.INC |
---|
344,7 → 344,7 |
if Ext=SSE2 |
db ' (SSE2)' |
end if |
db ' 0.068',0 |
db ' 0.069',0 |
labellen: |
STRdata db '-1 ' |
/programs/demos/3DS/VIEW3DS.ASM |
---|
1,5 → 1,5 |
; application : View3ds ver. 0.068b - tiny .3ds and .asc files viewer |
; application : View3ds ver. 0.069 - tiny .3ds and .asc files viewer |
; with a few graphics effects demonstration. |
; compiler : FASM |
; system : KolibriOS |
3379,34 → 3379,55 |
read_from_disk: |
if USE_LFN |
;- |
mov eax, 70 |
mov ebx, file_info |
mov dword[ebx], 5 ; -> subfunction number |
int 0x40 ; -> read file size |
mov ebx, [fptr] |
mov ebx, dword[ebx+32] |
inc ebx |
mov [fsize], ebx |
mov eax, 68 |
mov ebx, 11 |
int 0x40 ; -> create heap |
int 0x40 ; -> init heap |
mov eax, 68 |
mov ebx, 12 |
mov ecx, [fsize] |
int 0x40 ; -> allocate memory for file |
mov [fptr], eax ; -> eax = pointer to allocated mem |
;mov eax, 70 |
;mov ebx, file_info |
;mov dword[ebx], 5 ; -> subfunction number |
;int 0x40 ; -> read file size |
;mov ebx, [fptr] |
;mov ebx, dword[ebx+32] |
;inc ebx |
;mov [fsize], ebx |
mov eax, 70 |
mov ebx, file_info |
mov dword[ebx],0 |
int 0x40 ; -> read file |
;mov eax, 68 |
;mov ebx, 12 |
;mov ecx, [fsize] |
;int 0x40 ; -> allocate memory for file |
;mov [fptr], eax ; -> eax = pointer to allocated mem |
mov [fsize],ebx |
cmp eax,6 |
jnz @f |
xor eax,eax ;;;;--- |
;mov eax, 70 |
;mov ebx, file_info |
;mov dword[ebx],0 |
;int 0x40 ; -> read file |
;mov [fsize],ebx |
;cmp eax,6 |
;jnz @f |
;xor eax,eax ;;;;--- |
;cmp eax,6 |
;jnz @f |
;xor eax,eax ;;;;--- |
;load kpacked files by Leency |
mov eax,68 |
mov ebx,27 |
mov ecx,I_Param |
int 0x40 |
mov [fsize],edx |
mov [file_info+16],eax |
test eax,eax |
jnz .open_opened_well |
mov eax,6 ;otherwise => failed |
jmp @f |
.open_opened_well: |
xor eax,eax |
@@: |
else |
mov eax,58 |