fNav: update assoc (thanks for passerby report)
Eolite: half-fix of a fise display in Properties dialog for files bigger than 4 Gb (thanks for Mario report) git-svn-id: svn://kolibrios.org@9685 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
beb0dd901c
commit
80ae64dc44
|
@ -1 +1 @@
|
|||
/sys/TinyPad: asm, inc, mac, dat
/sys/media/kiv: gif, bmp, png, tga, jpg, ico, cur, tif, tiff, jpeg, ppm, pgm, pbm, pnm, pcx, wbmp, xcf
/sys/Network/Webview: htm, html, mht, xhtml, docx, url
/sys/fb2read: fb2
/sys/develop/cObj: obj
/sys/skincfg: skn, dtp
/sys/rtfRead: rtf
/sys/develop/cedit: cpp, h, c, c--, pas, set, ext, ini, ob07, lua, txt, log
/sys/mgb: mgb
/sys/media/pixie: mp3
/sys/media/AC97SND: wav, xm
/sys/media/MIDAMP: mid
/sys/media/listplay: m3u, lap, asf
/sys/shell: sh
/sys/3d/view3ds: 3ds, asc
/sys/graph: cvs, grf
/sys/unz: zip, 7z
/sys/unimg: img
/sys/table: csv
/kolibrios/media/updf: pdf
/kolibrios/media/fplay: avi, mpg, mov, flv, wmv, vob, mkv, mp4, mpeg, divx, 3gp, webm
/kolibrios/emul/zsnes/zsnes: smc
/kolibrios/emul/psx4all: mcr
/kolibrios/emul/fceu/fceu: nes
/kolibrios/emul/e80/e80: sna
/kolibrios/emul/gameboy: gb, gbc
/kolibrios/emul/pokemini: min
/sys/develop/heed:
|
||||
/sys/TinyPad: asm, inc, mac, dat
/sys/media/kiv: gif, bmp, png, tga, jpg, ico, cur, tif, tiff, jpeg, ppm, pgm, pbm, pnm, pcx, wbmp, xcf
/sys/Network/Webview: htm, html, mht, xhtml, docx, url
/sys/fb2read: fb2
/sys/develop/cObj: obj
/sys/skincfg: skn, dtp
/sys/rtfRead: rtf
/sys/develop/cedit: cpp, h, c, c--, pas, set, ext, ini, ob07, lua, txt, log
/sys/mgb: mgb
/sys/media/pixie: mp3, wav, xm
/sys/media/MIDAMP: mid
/sys/media/listplay: m3u, lap, asf
/sys/shell: sh
/sys/3d/view3ds: 3ds, asc
/sys/graph: cvs, grf
/sys/unz: zip, 7z
/sys/unimg: img
/sys/table: csv
/kolibrios/media/updf: pdf
/kolibrios/media/fplay: avi, mpg, mov, flv, wmv, vob, mkv, mp4, mpeg, divx, 3gp, webm
/kolibrios/emul/zsnes/zsnes: smc
/kolibrios/emul/psx4all: mcr
/kolibrios/emul/fceu/fceu: nes
/kolibrios/emul/e80/e80: sna
/kolibrios/emul/gameboy: gb, gbc
/kolibrios/emul/pokemini: min
/sys/develop/heed:
|
|
@ -120,6 +120,7 @@ void GetSizeMoreFiles(dword way)
|
|||
{
|
||||
GetFileInfo(#cur_file, #file_info_dirsize);
|
||||
more_files_count.bytes += file_info_dirsize.sizelo;
|
||||
more_files_count.bytes += file_info_dirsize.sizehi;
|
||||
more_files_count.files++;
|
||||
}
|
||||
}
|
||||
|
@ -219,10 +220,9 @@ void properties_dialog()
|
|||
void DrawPropertiesWindow()
|
||||
{
|
||||
proc_info pform;
|
||||
char element_size_label[32];
|
||||
char size_lbl[32];
|
||||
char folder_info[200];
|
||||
dword ext1;
|
||||
dword element_size;
|
||||
incn y;
|
||||
char temp_path[PATHLEN];
|
||||
bool show_date = false;
|
||||
|
@ -244,8 +244,8 @@ void DrawPropertiesWindow()
|
|||
PropertiesDrawIcon(NULL, "<lot>");
|
||||
sprintf(#folder_info,T_FILES_FOLDERS,more_files_count.files,more_files_count.folders);
|
||||
WriteText(file_name_ed.left+4, 30, 0x90, sc.work_text, #folder_info);
|
||||
sprintf(#element_size_label,T_PROP_SIZE,ConvertSize64(more_files_count.bytes, NULL),more_files_count.bytes);
|
||||
WriteText(10, 97, 0x90, sc.work_text, #element_size_label);
|
||||
sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(more_files_count.bytes, more_files_count.bytes>>32),more_files_count.bytes);
|
||||
WriteText(10, 97, 0x90, sc.work_text, #size_lbl);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -261,15 +261,14 @@ void DrawPropertiesWindow()
|
|||
DrawEditBox(#file_name_ed);
|
||||
|
||||
if (!itdir) {
|
||||
element_size = file_info_general.sizelo;
|
||||
sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(file_info_general.sizelo, file_info_general.sizehi),file_info_general.sizelo);
|
||||
} else {
|
||||
sprintf(#folder_info,T_FILES_FOLDERS,dir_size.files,dir_size.folders);
|
||||
WriteText(10, 117, 0x90, sc.work_text, PR_T_CONTAINS);
|
||||
WriteText(120, 117, 0x90, sc.work_text, #folder_info);
|
||||
element_size = dir_size.bytes;
|
||||
sprintf(#size_lbl,T_PROP_SIZE,ConvertSize64(dir_size.bytes, dir_size.bytes_high),dir_size.bytes);
|
||||
}
|
||||
sprintf(#element_size_label,T_PROP_SIZE,ConvertSize64(element_size, NULL),element_size);
|
||||
WriteText(10, 99, 0x90, sc.work_text, #element_size_label);
|
||||
WriteText(10, 99, 0x90, sc.work_text, #size_lbl);
|
||||
}
|
||||
|
||||
if (show_date) {
|
||||
|
|
|
@ -495,13 +495,14 @@ int block_size=1024*1024*4; //copy by 4 MiB
|
|||
dword folders;
|
||||
dword files;
|
||||
dword bytes;
|
||||
dword bytes_high;
|
||||
dword get();
|
||||
dword calculate_loop();
|
||||
};
|
||||
|
||||
:dword DIR_SIZE::get(dword way1)
|
||||
{
|
||||
folders = files = bytes = 0;
|
||||
folders = files = bytes = bytes_high = 0;
|
||||
if (!way1) return 0;
|
||||
calculate_loop(way1);
|
||||
}
|
||||
|
@ -531,6 +532,7 @@ int block_size=1024*1024*4; //copy by 4 MiB
|
|||
{
|
||||
GetFileInfo(cur_file, #dir_info);
|
||||
bytes += dir_info.sizelo;
|
||||
bytes_high += dir_info.sizehi;
|
||||
files++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue