# HG changeset patch # User frd # Date 1461445047 14400 # Node ID cfc3971de8ac15a6eade25f279d107b92eb0d7c0 # Parent 17d102f9515dee0dc218c9367565cb512c77bf24 Correctly call uPhysFSLayer.initModule diff -r 17d102f9515d -r cfc3971de8ac 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));