Prepend, not append
authorunc0rr
Sun, 10 Mar 2013 08:49:40 +0400
changeset 8714 ab201a62d115
parent 8713 5611011e40b5
child 8715 70a586fc76fd
Prepend, not append
QTfrontend/util/FileEngine.cpp
hedgewars/uPhysFSLayer.pas
misc/libphyslayer/hwpacksmounter.c
--- a/QTfrontend/util/FileEngine.cpp	Sat Mar 09 23:01:15 2013 -0500
+++ b/QTfrontend/util/FileEngine.cpp	Sun Mar 10 08:49:40 2013 +0400
@@ -327,12 +327,12 @@
 
 void FileEngineHandler::mount(const QString &path)
 {
-    PHYSFS_mount(path.toUtf8().constData(), NULL, 1);
+    PHYSFS_mount(path.toUtf8().constData(), NULL, 0);
 }
 
 void FileEngineHandler::mount(const QString & path, const QString & mountPoint)
 {
-    PHYSFS_mount(path.toUtf8().constData(), mountPoint.toUtf8().constData(), 1);
+    PHYSFS_mount(path.toUtf8().constData(), mountPoint.toUtf8().constData(), 0);
 }
 
 void FileEngineHandler::setWriteDir(const QString &path)
--- a/hedgewars/uPhysFSLayer.pas	Sat Mar 09 23:01:15 2013 -0500
+++ b/hedgewars/uPhysFSLayer.pas	Sun Mar 10 08:49:40 2013 +0400
@@ -143,9 +143,9 @@
     i:= PHYSFS_init(Str2PChar(cPhysfsId));
     AddFileLog('[PhysFS] init: ' + inttostr(i));
 
-    i:= PHYSFS_mount(Str2PChar(PathPrefix), nil, true);
+    i:= PHYSFS_mount(Str2PChar(PathPrefix), nil, false);
     AddFileLog('[PhysFS] mount ' + PathPrefix + ': ' + inttostr(i));
-    i:= PHYSFS_mount(Str2PChar(UserPathPrefix + '/Data'), nil, true);
+    i:= PHYSFS_mount(Str2PChar(UserPathPrefix + '/Data'), nil, false);
     AddFileLog('[PhysFS] mount ' + UserPathPrefix + '/Data: ' + inttostr(i));
 
     hedgewarsMountPackages;
--- a/misc/libphyslayer/hwpacksmounter.c	Sat Mar 09 23:01:15 2013 -0500
+++ b/misc/libphyslayer/hwpacksmounter.c	Sun Mar 10 08:49:40 2013 +0400
@@ -24,7 +24,7 @@
                     strcat(fullPath, "/");
                     strcat(fullPath, fileName);
 
-                    PHYSFS_mount(fullPath, NULL, 1);
+                    PHYSFS_mount(fullPath, NULL, 0);
 
                     free(fullPath);
                 }