hedgewars/uLocale.pas
changeset 11684 cfc3971de8ac
parent 11532 bf86c6cb9341
child 11699 83c40c1eb0e7
child 11790 ac93cfc17365
equal deleted inserted replaced
11683:17d102f9515d 11684:cfc3971de8ac
   138 begin
   138 begin
   139     PathPrefix := Strpas(path);
   139     PathPrefix := Strpas(path);
   140  
   140  
   141     uUtils.initModule(false);
   141     uUtils.initModule(false);
   142     uVariables.initModule;
   142     uVariables.initModule;
   143     uPhysFSLayer.initModule;
   143 
       
   144     PathPrefix:= PathPrefix + #0;
       
   145     UserPathPrefix:= UserPathPrefix + #0;
       
   146     uPhysFSLayer.initModule(@PathPrefix[1], @UserPathPrefix[1]);
       
   147     PathPrefix:= copy(PathPrefix, 1, length(PathPrefix) - 1);
       
   148     UserPathPrefix:= copy(UserPathPrefix, 1, length(UserPathPrefix) - 1);
   144  
   149  
   145     LoadLocale(Strpas(filename));
   150     LoadLocale(Strpas(filename));
   146  
   151  
   147     uPhysFSLayer.freeModule;
   152     uPhysFSLayer.freeModule;
   148     uVariables.freeModule;
   153     uVariables.freeModule;