hedgewars/uPhysFSLayer.pas
author unc0rr
Mon, 05 Nov 2012 23:10:54 +0400
branchphysfslayer
changeset 7963 9910f303f5b6
parent 7959 644b757d20e6
child 8022 10b3b93c1f56
permissions -rw-r--r--
Fix function prototype
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7959
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     1
unit uPhysFSLayer;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     2
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     3
{$LINKLIB ../bin/libphysfs.a}
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     4
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     5
interface
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     6
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     7
procedure initModule;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     8
procedure freeModule;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
     9
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    10
implementation
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    11
uses uUtils;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    12
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    13
function PHYSFS_init(argv0: PChar) : LongInt; cdecl; external;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    14
function PHYSFS_deinit() : LongInt; cdecl; external;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    15
7963
9910f303f5b6 Fix function prototype
unc0rr
parents: 7959
diff changeset
    16
function PHYSFS_mount(newDir, mountPoint: PChar; appendToPath: LongBool) : LongInt; cdecl; external;
7959
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    17
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    18
procedure initModule;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    19
begin
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    20
    PHYSFS_init(Str2PChar(ParamStr(0)));
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    21
end;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    22
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    23
procedure freeModule;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    24
begin
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    25
    PHYSFS_deinit;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    26
end;
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    27
644b757d20e6 Start work on physfs support in engine
unc0rr
parents:
diff changeset
    28
end.