Eolite 1.21
git-svn-id: svn://kolibrios.org@2661 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
b24027dc11
commit
ee39c37eca
@ -20,7 +20,7 @@ int BUTTON_HEIGHT=18;
|
||||
#define ONLY_OPEN 2
|
||||
|
||||
//ïåðåìåííûå
|
||||
#define title "Eolite File Manager v1.2"
|
||||
#define title "Eolite File Manager v1.21"
|
||||
dword videlenie=0x94AECE; //öâåò âûäåëåííîãî ýëåìåíòà èç ñïèñêà ôàéëîâ
|
||||
//
|
||||
int but_num,
|
||||
@ -358,6 +358,7 @@ int pressed_y;
|
||||
|
||||
inline fastcall void draw_window()
|
||||
{
|
||||
if (GetScreenHeight()<480) DefineAndDrawWindow(20,0,582,GetScreenHeight()-30,0x73,0x10E4DFE1,0,0,title); else
|
||||
DefineAndDrawWindow(98,90,582,482,0x73,0x10E4DFE1,0,0,title);
|
||||
Form.GetInfo(#Form, SelfInfo);
|
||||
IF (Form.status_window==4) return; //íè÷åãî íå äåëàòü åñëè îêíî ñõëîïíóòî â çàãîëîâîê
|
||||
|
@ -26,7 +26,25 @@ struct BDVK{
|
||||
};
|
||||
|
||||
////////////////////////////
|
||||
// ірочитать файл //
|
||||
// Ńîçäŕňü ôŕéë //
|
||||
////////////////////////////
|
||||
/*f70 create_file_70;
|
||||
void CreateFile(dword file_size, read_buffer, file_path)
|
||||
{
|
||||
create_file_70.func = 2;
|
||||
create_file_70.param1 = 0;
|
||||
create_file_70.param2 = 0;
|
||||
create_file_70.param3 = file_size;
|
||||
create_file_70.param4 = read_buffer;
|
||||
create_file_70.rezerv = 0;
|
||||
create_file_70.name = file_path;
|
||||
$mov eax,70
|
||||
$mov ebx,#create_file_70.func
|
||||
$int 0x40
|
||||
} */
|
||||
|
||||
////////////////////////////
|
||||
// Ďđî÷čňŕňü ôŕéë //
|
||||
////////////////////////////
|
||||
f70 read_file_70;
|
||||
void ReadFile(dword pos, file_size, read_buffer, file_path)
|
||||
@ -44,7 +62,7 @@ void ReadFile(dword pos, file_size, read_buffer, file_path)
|
||||
}
|
||||
|
||||
///////////////////////////
|
||||
// ірочитать папку //
|
||||
// Ďđî÷čňŕňü ďŕďęó //
|
||||
///////////////////////////
|
||||
f70 read_dir_70;
|
||||
int ReadDir(dword file_count, read_buffer, read_dir_path)
|
||||
@ -62,7 +80,7 @@ int ReadDir(dword file_count, read_buffer, read_dir_path)
|
||||
}
|
||||
|
||||
///////////////////////////
|
||||
// іапуск программv //
|
||||
// Çŕďóńę ďđîăđŕěěv //
|
||||
///////////////////////////
|
||||
f70 run_file_70;
|
||||
int RunProgram(dword run_path, run_param)
|
||||
@ -80,7 +98,7 @@ int RunProgram(dword run_path, run_param)
|
||||
}
|
||||
|
||||
///////////////////////////
|
||||
// Tоздание папки //
|
||||
// Ńîçäŕíčĺ ďŕďęč //
|
||||
///////////////////////////
|
||||
f70 create_dir_70;
|
||||
int CreateFolder(dword new_folder_path)
|
||||
@ -98,7 +116,7 @@ int CreateFolder(dword new_folder_path)
|
||||
}
|
||||
|
||||
////////////////////////////
|
||||
// Lдаление файла/папки //
|
||||
// Óäŕëĺíčĺ ôŕéëŕ/ďŕďęč //
|
||||
////////////////////////////
|
||||
f70 del_file_70;
|
||||
int DeleleFile(dword del_file_path)
|
||||
@ -116,7 +134,7 @@ int DeleleFile(dword del_file_path)
|
||||
}
|
||||
|
||||
///////////////////////////
|
||||
// Tкопировать файл //
|
||||
// Ńęîďčđîâŕňü ôŕéë //
|
||||
///////////////////////////
|
||||
f70 CopyFile_f;
|
||||
inline fastcall int CopyFile(dword EBX,ECX)
|
||||
|
@ -195,6 +195,15 @@ inline fastcall dword GetSkinWidth(){
|
||||
$int 0x40
|
||||
}
|
||||
|
||||
inline fastcall dword GetScreenHeight()
|
||||
{
|
||||
EAX = 14;
|
||||
EBX = 4;
|
||||
$int 0x40
|
||||
//$shr eax, 16
|
||||
$and eax,0x0000FFFF
|
||||
}
|
||||
|
||||
inline fastcall void MoveSize(dword EBX,ECX,EDX,ESI){
|
||||
EAX = 67;
|
||||
$int 0x40
|
||||
|
Loading…
Reference in New Issue
Block a user