fs.obj: new functions and dynamic buffer

git-svn-id: svn://kolibrios.org@5890 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
pavelyakov 2015-11-06 18:11:25 +00:00
parent 8e53fed57a
commit 2f5e4de57f
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -18,6 +18,9 @@
dword read_pointer; dword read_pointer;
dword read(dword path); dword read(dword path);
dword run_pointer;
dword run(dword path,arg);
dword move_pointer; dword move_pointer;
byte move(dword path1,path2); byte move(dword path1,path2);
@ -42,6 +45,14 @@
return EAX; return EAX;
} }
:dword FILE_SYSTEM_FUNCTION::run(dword path,arg)
{
dword tmp1 = path1;
dword tmp2 = arg;
run_pointer stdcall(tmp1,tmp2);
return EAX;
}
:qword FILE_SYSTEM_FUNCTION::get_size(dword path) :qword FILE_SYSTEM_FUNCTION::get_size(dword path)
{ {
dword tmp = path; dword tmp = path;
@ -75,6 +86,7 @@
fs.move_pointer = library.get("fs.move"); fs.move_pointer = library.get("fs.move");
fs.copy_pointer = library.get("fs.copy"); fs.copy_pointer = library.get("fs.copy");
fs.read_pointer = library.get("fs.read"); fs.read_pointer = library.get("fs.read");
fs.run_pointer = library.get("fs.execute");
__CHECK_FS__ = true; __CHECK_FS__ = true;
} }