hedgewars/uPhysFSLayer.pas
branchwebgl
changeset 9950 2759212a27de
parent 9521 8054d9d775fd
parent 9531 7fcdedc45589
child 10015 4feced261c68
--- a/hedgewars/uPhysFSLayer.pas	Fri Oct 11 17:43:13 2013 +0200
+++ b/hedgewars/uPhysFSLayer.pas	Sat Jan 04 23:55:54 2014 +0400
@@ -149,10 +149,14 @@
 
     i:= PHYSFS_mount(Str2PChar(PathPrefix), nil, false);
     AddFileLog('[PhysFS] mount ' + PathPrefix + ': ' + inttostr(i));
-    i:= PHYSFS_mount(Str2PChar(UserPathPrefix + '/'), '/', false);
-    AddFileLog('[PhysFS] mount ' + UserPathPrefix + '/: ' + inttostr(i));
+    i:= PHYSFS_mount(Str2PChar(UserPathPrefix + '/Data'), nil, false);
+    AddFileLog('[PhysFS] mount ' + UserPathPrefix + '/Data: ' + inttostr(i));
 
     hedgewarsMountPackages;
+
+    i:= PHYSFS_mount(Str2PChar(UserPathPrefix), nil, false);
+    // need access to teams and frontend configs (for bindings)
+    AddFileLog('[PhysFS] mount ' + UserPathPrefix + ': ' + inttostr(i)); 
 end;
 
 procedure freeModule;