Correctly call uPhysFSLayer.initModule
authorfrd
Sat, 23 Apr 2016 16:57:27 -0400
changeset 11689 cfc3971de8ac
parent 11688 17d102f9515d
child 11690 a2e86a867fb5
Correctly call uPhysFSLayer.initModule
hedgewars/uLocale.pas
--- 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));