Subversion Repositories Kolibri OS

Rev

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

Rev 7773 Rev 7889
Line 152... Line 152...
152
	__file_F70.name = io.path.path(read_file_path);
152
	__file_F70.name = io.path.path(read_file_path);
153
	$mov eax,70
153
	$mov eax,70
154
	$mov ebx,#__file_F70.func
154
	$mov ebx,#__file_F70.func
155
	$int 0x40
155
	$int 0x40
156
}
156
}
157
:int __FILE::write(dword write_file_size, write_buffer, write_file_path)
157
:int __FILE::write(dword write_offset, write_len, write_buffer, wfile_path)
158
{
158
{
159
	__file_F70.func = 2;
159
	__file_F70.func = 2;
160
	__file_F70.param1 = 0;
160
	__file_F70.param1 = write_offset;
161
	__file_F70.param2 = 0;
161
	__file_F70.param2 = 0;
162
	__file_F70.param3 = write_file_size;
162
	__file_F70.param3 = write_len;
163
	__file_F70.param4 = write_buffer;
163
	__file_F70.param4 = write_buffer;
164
	__file_F70.rezerv = 0;
164
	__file_F70.rezerv = 0;
165
	__file_F70.name = io.path.path(write_file_path);
165
	__file_F70.name = io.path.path(wfile_path);
166
	$mov eax,70
166
	$mov eax,70
167
	$mov ebx,#__file_F70.func
167
	$mov ebx,#__file_F70.func
168
	$int 0x40
168
	$int 0x40
169
}
169
}
170
:struct __DIR
170
:struct __DIR
Line 324... Line 324...
324
	buffer_data = EAX;
324
	buffer_data = EAX;
325
	return buffer_data;
325
	return buffer_data;
326
}	
326
}	
327
:int IO::write(dword PATH,data)
327
:int IO::write(dword PATH,data)
328
{
328
{
329
	file.write(0,strlen(data),data,PATH);
329
	return file.write(0,strlen(data),data,PATH);
330
}
330
}
331
:char BYTE_HEAD_FILE_KPCK[4];
331
:char BYTE_HEAD_FILE_KPCK[4];
332
:dword IO::read(dword PATH)
332
:dword IO::read(dword PATH)
333
{
333
{
334
	int result;
334
	int result;
Line 353... Line 353...
353
    __file_F70.param2 = rparam;
353
    __file_F70.param2 = rparam;
354
    __file_F70.name = path.path(rpath);
354
    __file_F70.name = path.path(rpath);
355
    $mov eax,70
355
    $mov eax,70
356
    $mov ebx,#__file_F70.func
356
    $mov ebx,#__file_F70.func
357
    $int 0x40
357
    $int 0x40
-
 
358
    return EAX;
358
}
359
}
359
:signed IO::count(dword PATH)
360
:signed IO::count(dword PATH)
360
{
361
{
361
	byte buf[32];
362
	byte buf[32];
362
	if(!___ReadDir(0, #buf, PATH))
363
	if(!___ReadDir(0, #buf, PATH))