hedgewars/hwLibrary.pas
branchqmlfrontend
changeset 10424 4be6cd55f1cf
parent 10416 1c301054694d
child 10426 727a154cf784
--- a/hedgewars/hwLibrary.pas	Fri Sep 26 00:56:36 2014 +0400
+++ b/hedgewars/hwLibrary.pas	Sat Sep 27 12:49:08 2014 +0400
@@ -41,6 +41,7 @@
     , uFLTypes
     , uFLGameConfig
     , uFLIPC
+    , uPhysFSLayer
     ;
 
 {$INCLUDE "config.inc"}
@@ -99,9 +100,16 @@
     ReleaseSound(false);
 end;
 
-procedure flibInit; cdecl; export;
+procedure flibInit(localPrefix, userPrefix: PChar); cdecl; export;
 begin
-    initIPC
+    initIPC;
+    uPhysFSLayer.initModule(localPrefix, userPrefix);
+end;
+
+procedure flibFree; cdecl; export;
+begin
+    uPhysFSLayer.freemodule;
+    freeIPC;
 end;
 
 {$IFDEF ANDROID}
@@ -139,6 +147,7 @@
     registerIPCCallback,
     ipcToEngine,
     flibInit,
+    flibFree,
     LoadLocaleWrapper,
     HW_versionInfo,
     HW_versionString,