Subversion Repositories Kolibri OS

Rev

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

Rev 5883 Rev 5885
Line 13... Line 13...
13
:struct FILE_SYSTEM_FUNCTION
13
:struct FILE_SYSTEM_FUNCTION
14
{
14
{
15
	dword remove_pointer;
15
	dword remove_pointer;
16
	byte remove(dword path);
16
	byte remove(dword path);
Line -... Line 17...
-
 
17
	
-
 
18
	dword read_pointer;
-
 
19
	dword read(dword path);
17
	
20
	
18
	dword move_pointer;
21
	dword move_pointer;
Line 19... Line 22...
19
	byte move(dword path1,path2);
22
	byte move(dword path1,path2);
20
	
23
	
Line 30... Line 33...
30
	dword tmp = path;
33
	dword tmp = path;
31
	remove_pointer stdcall(tmp);
34
	remove_pointer stdcall(tmp);
32
	return EAX;
35
	return EAX;
33
}
36
}
Line -... Line 37...
-
 
37
 
-
 
38
:dword FILE_SYSTEM_FUNCTION::read(dword path)
-
 
39
{
-
 
40
	dword tmp = path;
-
 
41
	read_pointer stdcall(tmp);
-
 
42
	return EAX;
-
 
43
}
34
 
44
 
35
:qword FILE_SYSTEM_FUNCTION::get_size(dword path)
45
:qword FILE_SYSTEM_FUNCTION::get_size(dword path)
36
{
46
{
37
	dword tmp = path;
47
	dword tmp = path;
38
	get_size_pointer stdcall(tmp);
48
	get_size_pointer stdcall(tmp);
Line 53... Line 63...
53
	dword tmp2 = path2;
63
	dword tmp2 = path2;
54
	copy_pointer stdcall(tmp1,tmp2);
64
	copy_pointer stdcall(tmp1,tmp2);
55
	return EAX;
65
	return EAX;
56
}
66
}
Line -... Line 67...
-
 
67
 
57
 
68
:byte __CHECK_FS__ = 0;
58
:void lib_init_fs()
69
:void lib_init_fs()
-
 
70
{
59
{
71
	IF(__CHECK_FS__)return;
60
	library.load("/sys/LIB/FS.OBJ");
72
	library.load("/sys/LIB/FS.OBJ");
61
	fs.remove_pointer = library.get("fs.remove");
73
	fs.remove_pointer = library.get("fs.remove");
62
	fs.get_size_pointer = library.get("fs.get_size");
74
	fs.get_size_pointer = library.get("fs.get_size");
63
	fs.move_pointer = library.get("fs.move");
75
	fs.move_pointer = library.get("fs.move");
64
	fs.copy_pointer = library.get("fs.copy");
76
	fs.copy_pointer = library.get("fs.copy");
-
 
77
	fs.read_pointer = library.get("fs.read");
65
	//alert(itoa(fs.get_size("/sys/")));
78
	__CHECK_FS__ = true;
Line 66... Line 79...
66
}
79
}
67
 
80