mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-13 12:55:05 -05:00
cc3b9d401f
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@233 3f818213-9676-44b0-a9b4-5e4c4e03d09d
48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
function ps_CreateFile(Path: string): Integer;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.CreateFile(Path);
|
|
end;
|
|
|
|
function ps_OpenFile(Path: string; Shared: Boolean): Integer;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.OpenFile(Path, Shared);
|
|
end;
|
|
|
|
function ps_RewriteFile(Path: string; Shared: Boolean): Integer;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.RewriteFile(Path, Shared);
|
|
end;
|
|
|
|
procedure ps_CloseFile(FileNum: Integer);
|
|
begin
|
|
CurrThread.Client.MFiles.CloseFile(FileNum);
|
|
end;
|
|
|
|
function ps_EndOfFile(FileNum: Integer): Boolean;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.EndOfFile(FileNum);
|
|
end;
|
|
|
|
function ps_FileSize(FileNum: Integer): LongInt;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.FileSizeMuf(FileNum);
|
|
end;
|
|
|
|
function ps_ReadFileString(FileNum: Integer; out s: string; x: Integer): Boolean;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.ReadFileString(FileNum, s, x);
|
|
end;
|
|
|
|
function ps_WriteFileString(FileNum: Integer; s: string): Boolean;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.WriteFileString(FileNum, s);
|
|
end;
|
|
function ps_SetFileCharPointer(FileNum, cChars, Origin: Integer): Integer;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.SetFileCharPointer(Filenum, cChars, Origin);
|
|
end;
|
|
function ps_FilePointerPos(FileNum: Integer): Integer;
|
|
begin
|
|
Result := CurrThread.Client.MFiles.FilePointerPos(FileNum);
|
|
end;
|