31,9 → 31,8 |
}; |
|
|
:void DrawDate(dword x, y, color, in_date) |
:void DrawDate(dword x, y, color, dword in_date) |
{ |
//char text[10]; |
EDI = in_date; |
EAX = 47; |
EBX = 2<<16; |
48,9 → 47,6 |
EBX = 4<<16; |
ECX = EDI.date.year; |
$int 0x40; |
|
//sprintf(#text,"%d.%d.%d",EDI.date.day,EDI.date.month,EDI.date.year); |
//WriteText(x, y, 0x80, 0x80<<24+color, #text); |
} |
|
|
301,9 → 297,9 |
return #absolute_path; |
} |
|
:dword ConvertSize(dword bytes) |
:dword ConvertSize(unsigned int bytes) |
{ |
byte size_prefix[8], size_nm[4]; |
unsigned char size_prefix[8], size_nm[4]; |
if (bytes>=1073741824) strcpy(#size_nm, "Gb"); |
else if (bytes>=1048576) strcpy(#size_nm, "Mb"); |
else if (bytes>=1024) strcpy(#size_nm, "Kb"); |
311,7 → 307,6 |
while (bytes>1023) bytes/=1024; |
itoa_(#size_prefix, bytes); |
strcat(#size_prefix, #size_nm); |
//sprintf(#size_prefix,"%s","123"); |
return #size_prefix; |
} |
|