summaryrefslogtreecommitdiff
path: root/src/dirs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-19 21:25:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-19 21:25:27 +0300
commit7225c69c5bf2de13d32d6e9a658779405c8e2707 (patch)
tree5fbd69d62ae8bd65b7b7a2e9986041aee4829888 /src/dirs.cpp
parentc0af9f41451d782b316feea8cf93fc50d4bd6733 (diff)
downloadplus-7225c69c5bf2de13d32d6e9a658779405c8e2707.tar.gz
plus-7225c69c5bf2de13d32d6e9a658779405c8e2707.tar.bz2
plus-7225c69c5bf2de13d32d6e9a658779405c8e2707.tar.xz
plus-7225c69c5bf2de13d32d6e9a658779405c8e2707.zip
Add strong typed bool enum Append.
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);
}
}
}