diff options
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. |