# HG changeset patch # User unc0rr # Date 1362890980 -14400 # Node ID ab201a62d115fdd72d44d7e8329d05957c83f43b # Parent 5611011e40b5056ca84addf98f4897bf76068773 Prepend, not append diff -r 5611011e40b5 -r ab201a62d115 QTfrontend/util/FileEngine.cpp --- 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) diff -r 5611011e40b5 -r ab201a62d115 hedgewars/uPhysFSLayer.pas --- 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; diff -r 5611011e40b5 -r ab201a62d115 misc/libphyslayer/hwpacksmounter.c --- 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); }