/programs/cmm/lib/fs.h |
---|
331,25 → 331,6 |
ExitProcess(); |
} |
:bool file_name_is_8_3(dword name) |
{ |
strlen(name); |
if (EAX>12) return false; |
$push eax |
strrchr(name, '.'); |
$pop ebx |
//EAX = dot pos |
//EBX = name length |
if (EAX) { |
if (EBX-EAX>3) return false; |
} else { |
if (EBX>8) return false; |
} |
return true; |
} |
//===================================================// |
// // |
// Convert Size // |
/programs/cmm/lib/kolibri.h |
---|
384,7 → 384,6 |
//------------------------------------------------------------------------------ |
#define ROLLED_UP 0x04 |
:void DefineAndDrawWindow(dword _x, _y, _w, _h, _window_type, _bgcolor, _title, _flags) |
{ |
EAX = 12; // function 12:tell os about windowdraw |
399,6 → 398,7 |
ESI = _flags; |
$int 0x40 |
EAX = 12; // function 12:tell os about windowdraw |
EBX = 2; |
$int 0x40 |