diff -r c2e6df2cfac7 -r b3db79b56f28 hedgewars/hwengine.pas --- 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