diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-01 13:27:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-01 21:33:36 +0300 |
commit | 748b2dc257650d9ff6e740496802cb977227bc21 (patch) | |
tree | 8b609eebf4b0733d5f0ccb5586d9c1999afba846 /src/utils/paths.cpp | |
parent | e8ce245e0bbb87bc45d15b9f0eb8bf423373d203 (diff) | |
download | plus-748b2dc257650d9ff6e740496802cb977227bc21.tar.gz plus-748b2dc257650d9ff6e740496802cb977227bc21.tar.bz2 plus-748b2dc257650d9ff6e740496802cb977227bc21.tar.xz plus-748b2dc257650d9ff6e740496802cb977227bc21.zip |
move package directory variable from client into paths.
Diffstat (limited to 'src/utils/paths.cpp')
-rw-r--r-- | src/utils/paths.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/utils/paths.cpp b/src/utils/paths.cpp index dbe0cccce..cba263027 100644 --- a/src/utils/paths.cpp +++ b/src/utils/paths.cpp @@ -52,6 +52,11 @@ #include "debug.h" +namespace +{ + std::string mPackageDir; +} // namespace + std::string getRealPath(const std::string &str) { #if defined(__OpenBSD__) || defined(__ANDROID__) || defined(__native_client__) @@ -193,3 +198,13 @@ std::string getSdStoragePath() return getenv("DATADIR2"); } #endif + +std::string getPackageDir() +{ + return mPackageDir; +} + +void setPackageDir(const std::string &dir) +{ + mPackageDir = dir; +} |