diff options
author | Ilya Zverev <zverik@textual.ru> | 2015-07-02 20:36:04 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:54:03 +0300 |
commit | b15e566b41a272b5a76b67ede12e643004963d2d (patch) | |
tree | b7b6a93087bedb175c812f98173aced189dc33ca /platform/platform.hpp | |
parent | 63006bbf8165e2b18d227365121cf38582463139 (diff) |
[testing] Added SetWritableDir() and command-line args in testingmail
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r-- | platform/platform.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp index 14219736f1..ef9d3e583b 100644 --- a/platform/platform.hpp +++ b/platform/platform.hpp @@ -92,6 +92,8 @@ public: void AddOptionalPath(string const &path) {m_optionalDir = path;} /// @return always the same writable dir for current user with slash at the end string WritableDir() const { return m_writableDir; } + /// @return set writable dir — use for testing and linux stuff only + void SetWritableDir(string const &path) { m_writableDir = path; } /// @return full path to file in user's writable directory string WritablePathForFile(string const & file) const { return WritableDir() + file; } /// @return full path to indexes directory for country file. |