From df86b2f74a1f42f1dcfa9f0c6c4a75b24fdf81de Mon Sep 17 00:00:00 2001 From: Bernd Wachter Date: Thu, 25 Feb 2010 21:56:31 +0100 Subject: Add support for platform specifig config/data directories #84 Reviewed-by: Jared Adams --- src/client.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 32b921dc..f0fdd508 100644 --- a/src/client.h +++ b/src/client.h @@ -138,11 +138,11 @@ public: std::string username; std::string password; std::string character; - std::string configPath; std::string brandingPath; std::string updateHost; std::string dataPath; - std::string homeDir; + std::string configDir; + std::string localDataDir; std::string screenshotDir; std::string serverName; @@ -165,8 +165,11 @@ public: static State getState() { return instance()->state; } - static const std::string &getHomeDirectory() - { return instance()->homeDir; } + static const std::string &getConfigDirectory() + { return instance()->configDir; } + + static const std::string &getLocalDataDirectory() + { return instance()->localDataDir; } static const std::string &getScreenshotDirectory() { return instance()->screenshotDir; } @@ -186,7 +189,8 @@ private: Options options; - std::string homeDir; + std::string configDir; + std::string localDataDir; std::string updateHost; std::string updatesDir; std::string screenshotDir; -- cgit v1.2.3-60-g2f50