hedgewars/uLocale.pas
changeset 11689 cfc3971de8ac
parent 11537 bf86c6cb9341
child 11704 83c40c1eb0e7
child 11795 ac93cfc17365
--- a/hedgewars/uLocale.pas	Sat Apr 23 16:57:20 2016 -0400
+++ b/hedgewars/uLocale.pas	Sat Apr 23 16:57:27 2016 -0400
@@ -140,7 +140,12 @@
  
     uUtils.initModule(false);
     uVariables.initModule;
-    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);
  
     LoadLocale(Strpas(filename));