Subversion Repositories Kolibri OS

Rev

Rev 984 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 984 Rev 1415
Line 1... Line -...
1
#define ac97snd "AC97SND"
-
 
2
#define desktop "desktop"
-
 
3
#define fce "/sys/games/fce"
-
 
4
#define graph "graph"
-
 
5
#define htmlv "/sys/network/HTMLv"
-
 
6
#define jpegview "jpegview"
-
 
7
#define life2 "/sys/demos/life2"
1
//CODED by Veliant, Leency. GNU GPL licence.
8
#define midamp "/sys/multimedia/midamp"
-
 
9
#define mv "MV"
-
 
10
//#define mv "/sys/multimedia/imgview"
-
 
11
#define pngview "/sys/multimedia/pngview"
-
 
12
#define tinypad "TinyPad"
-
 
13
 
-
 
Line 14... Line 2...
14
 
2
 
15
struct f70{
3
struct f70{
16
	dword	func;
4
	dword	func;
17
	dword	param1;
5
	dword	param1;
Line 36... Line 24...
36
	dword	sizehi;
24
	dword	sizehi;
37
	char	name[518];
25
	char	name[518];
38
};
26
};
Line 39... Line 27...
39
 
27
 
40
////////////////////////////
28
////////////////////////////
41
//     Ïðî÷èòàòü ôàéë     //
29
//     ³ðî÷èòàòü ôàéë     //
42
////////////////////////////
30
////////////////////////////
43
f70 read_file_70;
31
f70 read_file_70;
44
void ReadFile(dword pos, file_size, read_buffer, file_path)
32
void ReadFile(dword pos, file_size, read_buffer, file_path)
45
{    
33
{    
Line 54... Line 42...
54
	$mov ebx,#read_file_70.func
42
	$mov ebx,#read_file_70.func
55
	$int 0x40
43
	$int 0x40
56
}    
44
}    
Line 57... Line 45...
57
 
45
 
58
///////////////////////////
46
///////////////////////////
59
//    Ïðî÷èòàòü ïàïêó    //
47
//    ³ðî÷èòàòü ïàïêó    //
60
///////////////////////////
48
///////////////////////////
61
f70 read_dir_70;
49
f70 read_dir_70;
62
void ReadDir(dword file_count, read_buffer, read_dir_path)
50
void ReadDir(dword file_count, read_buffer, read_dir_path)
63
{    
51
{    
Line 72... Line 60...
72
	$mov ebx,#read_dir_70.func
60
	$mov ebx,#read_dir_70.func
73
	$int 0x40
61
	$int 0x40
74
}  
62
}  
Line 75... Line 63...
75
 
63
 
76
///////////////////////////
64
///////////////////////////
77
//   Çàïóñê ïðîãðàììû    //
65
//   ³àïóñê ïðîãðàììv    //
78
///////////////////////////
66
///////////////////////////
79
f70 run_file_70;
67
f70 run_file_70;
80
void RunProgram(dword run_path, run_param)
68
void RunProgram(dword run_path, run_param)
81
{    
69
{    
Line 90... Line 78...
90
    $mov ebx,#run_file_70.func
78
    $mov ebx,#run_file_70.func
91
    $int 0x40 
79
    $int 0x40 
92
}
80
}
Line 93... Line 81...
93
 
81
 
94
///////////////////////////
82
///////////////////////////
95
//    Ñîçäàíèå ïàïêè     //
83
//    Tîçäàíèå ïàïêè     //
96
///////////////////////////
84
///////////////////////////
97
f70 create_dir_70;
85
f70 create_dir_70;
98
void CreateFolder(dword new_folder_path)
86
void CreateFolder(dword new_folder_path)
99
{
87
{
Line 108... Line 96...
108
	$mov ebx,#create_dir_70.func
96
	$mov ebx,#create_dir_70.func
109
	$int 0x40
97
	$int 0x40
110
}
98
}
Line 111... Line 99...
111
 
99
 
112
////////////////////////////
100
////////////////////////////
113
//  Óäàëåíèå ôàéëà/ïàïêè  //
101
//  Läàëåíèå ôàéëà/ïàïêè  //
114
////////////////////////////
102
////////////////////////////
115
f70 del_file_70;	
103
f70 del_file_70;	
116
void DeleleFile(dword del_file_path)
104
void DeleleFile(dword del_file_path)
117
{    
105
{    
Line 126... Line 114...
126
	$mov ebx,#del_file_70.func
114
	$mov ebx,#del_file_70.func
127
	$int 0x40
115
	$int 0x40
128
}  
116
}  
Line 129... Line 117...
129
 
117
 
130
///////////////////////////
118
///////////////////////////
131
//   Ñêîïèðîâàòü ôàéë    //
119
//   Têîïèðîâàòü ôàéë    //
132
///////////////////////////
120
///////////////////////////
133
f70	CopyFile_f;
121
f70	CopyFile_f;
134
inline fastcall dword CopyFile(dword EBX,ECX)
122
inline fastcall dword CopyFile(dword EBX,ECX)
135
{
123
{