summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirs.cpp')
-rw-r--r--src/dirs.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 8b0bbbeeb..c3d70494f 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -193,8 +193,9 @@ void Dirs::extractDataDir()
void Dirs::mountDataDir()
{
resourceManager->addToSearchPath(PKG_DATADIR "data/perserver/default",
- false);
- resourceManager->addToSearchPath("data/perserver/default", false);
+ Append_false);
+ resourceManager->addToSearchPath("data/perserver/default",
+ Append_false);
#if defined __APPLE__
CFBundleRef mainBundle = CFBundleGetMainBundle();
@@ -208,28 +209,28 @@ void Dirs::mountDataDir()
CFRelease(resourcesURL);
// possible crash
strncat(path, "/data", PATH_MAX - 1);
- resourceManager->addToSearchPath(path, false);
+ resourceManager->addToSearchPath(path, Append_false);
// possible this need for support run client from dmg images.
// mPackageDir = path;
#endif
- resourceManager->addToSearchPath(PKG_DATADIR "data", false);
+ resourceManager->addToSearchPath(PKG_DATADIR "data", Append_false);
setPackageDir(PKG_DATADIR "data");
- resourceManager->addToSearchPath("data", false);
+ resourceManager->addToSearchPath("data", Append_false);
#ifdef ANDROID
#ifdef USE_SDL2
if (getenv("APPDIR"))
{
const std::string appDir = getenv("APPDIR");
- resourceManager->addToSearchPath(appDir + "/data", false);
+ resourceManager->addToSearchPath(appDir + "/data", Append_false);
resourceManager->addToSearchPath(appDir + "/data/perserver/default",
- false);
+ Append_false);
}
#endif
#endif
#if defined __native_client__
- resourceManager->addToSearchPath(_nacl_dir.append("/data"), false);
+ resourceManager->addToSearchPath(_nacl_dir.append("/data"), Append_false);
#endif
// Add branding/data to PhysFS search path
@@ -248,7 +249,8 @@ void Dirs::mountDataDir()
if (loc > 0)
{
resourceManager->addToSearchPath(path.substr(
- 0, loc + 1).append("data"), false);
+ 0, loc + 1).append("data"),
+ Append_false);
}
}
}