hedgewars/uPhysFSLayer.pas
changeset 8077 2ea5cde93abc
parent 8073 5a289ef40fdb
child 8080 a6fc5396b3d6
--- a/hedgewars/uPhysFSLayer.pas	Tue Nov 20 22:29:58 2012 +0400
+++ b/hedgewars/uPhysFSLayer.pas	Tue Nov 20 23:09:17 2012 +0400
@@ -1,14 +1,11 @@
 unit uPhysFSLayer;
 
 interface
-uses SDLh;
+uses SDLh, LuaPas;
 
 {$IFDEF ANDROID}
     {$linklib physfs}
 {$ELSE}
-    {$IFNDEF WIN32}
-        {$linklib ../bin/libphysfs.a}
-    {$ENDIF}
     {$IFDEF DARWIN}
         {$LINKFRAMEWORK IOKit}
     {$ENDIF}
@@ -21,7 +18,7 @@
     {$IFDEF DARWIN}
     PhysfsLibName = 'physfs';
     {$ELSE}
-    PhysfsLibName = 'physfs.a';
+    PhysfsLibName = 'physfs';
     {$ENDIF}
 {$ENDIF}
 
@@ -42,6 +39,9 @@
 
 function pfsExists(fname: shortstring): boolean;
 
+function  physfsReader(L: Plua_State; f: PFSFile; sz: Psize_t) : PChar; cdecl; external PhysfsLibName;
+procedure physfsReaderSetBuffer(buf: pointer); cdecl; external PhysfsLibName;
+
 implementation
 uses uUtils, uVariables;