/programs/cmm/lib/copyf.h |
---|
83,7 → 83,7 |
sprintf(#copy_from2,"%s/%s",from2,filename); |
sprintf(#copy_in2,"%s/%s",in2,filename); |
if ( TestBit(ESDWORD[filename-40], 4) ) //dir_exists? |
if ( ESDWORD[filename-40] & ATR_FOLDER ) //dir_exists? |
{ |
if ( (!strncmp(filename, ".",1)) || (!strncmp(filename, "..",2)) ) continue; |
CopyFolder(#copy_from2, #copy_in2); |
/programs/cmm/lib/fs.h |
---|
40,9 → 40,9 |
dword sizehi; |
char name[518]; |
}; |
#define ATR_FOLDER 0x10 |
:dword GetFileInfo(dword file_path, bdvk_struct) |
{ |
f70.func = 5; |
480,7 → 480,7 |
filename = i*304+dirbuf+72; |
sprintf(cur_file,"%s/%s",way,filename); |
if (TestBit(ESDWORD[filename-40], 4) ) |
if (ESDWORD[filename-40] & ATR_FOLDER ) |
{ |
folders++; |
calculate_loop(cur_file); |
/programs/cmm/lib/gui.h |
---|
70,8 → 70,7 |
{ |
dword tx = -strlen(text)*8+w/2+x; |
dword ty = h/2-7+y; |
if (id>0) DefineButton(x,y,w,h,id,color_b); |
DefineButton(x,y,w,h,id,color_b); |
WriteText(tx+1,ty+1,0x90,MixColors(color_b,0,230),text); |
WriteText(tx,ty,0x90,color_t,text); |
} |
90,7 → 89,7 |
unsigned darker_color = MixColors(sc.button,0,230); |
if (id>0) DefineButton(x,y,w,h,id,sc.button); |
DefineButton(x,y,w,h,id,sc.button); |
WriteText(tx+1,ty+1,0x90,darker_color,text); |
WriteText(tx,ty,0x90,sc.button_text,text); |
/programs/cmm/lib/io.h |
---|
392,7 → 392,7 |
if(tmp==-1)return -1; |
size_tmp += tmp; |
i++; |
if (TestBit(ESDWORD[filename-40], 4))count_dirs++; |
if (ESDWORD[filename-40] & ATR_FOLDER)count_dirs++; |
else count_files++; |
} |