hedgewars/hwengine.pas
changeset 11631 b3db79b56f28
parent 11548 45982bda46cc
child 11633 215b837c16f9
child 11644 f17df78181d8
--- a/hedgewars/hwengine.pas	Tue Mar 29 16:54:07 2016 +0200
+++ b/hedgewars/hwengine.pas	Tue Mar 29 22:00:34 2016 +0300
@@ -465,7 +465,13 @@
     uLand.initModule;               // computes land
     uLandPainted.initModule;        // computes drawn land
     uIO.initModule;                 // sets up sockets
-    uPhysFSLayer.initModule;
+
+    PathPrefix:= PathPrefix + #0;
+    UserPathPrefix:= UserPathPrefix + #0;
+    uPhysFSLayer.initModule(@PathPrefix[1], @UserPathPrefix[1]);
+    PathPrefix:= copy(PathPrefix, 1, length(PathPrefix) - 1);
+    UserPathPrefix:= copy(UserPathPrefix, 1, length(UserPathPrefix) - 1);
+
     uScript.initModule;
 
     if complete then