hedgewars/uPhysFSLayer.pas
author unc0rr
Mon, 05 Nov 2012 23:03:32 +0400
branchphysfslayer
changeset 7959 644b757d20e6
child 7963 9910f303f5b6
permissions -rw-r--r--
Start work on physfs support in engine

unit uPhysFSLayer;

{$LINKLIB ../bin/libphysfs.a}

interface

procedure initModule;
procedure freeModule;

implementation
uses uUtils;

function PHYSFS_init(argv0: PChar) : LongInt; cdecl; external;
function PHYSFS_deinit() : LongInt; cdecl; external;

function PHYSFS_mount(newDir, mountPoint: PChar; appendToPath: LongBool); cdecl; external;

procedure initModule;
begin
    PHYSFS_init(Str2PChar(ParamStr(0)));
end;

procedure freeModule;
begin
    PHYSFS_deinit;
end;

end.