summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorDarkWind <darkwindmsn@hotmail.com>2011-02-15 20:05:02 +0100
committerBernd Wachter <bwachter-tmw@lart.info>2011-02-15 21:16:50 +0200
commit3c93bde383fad59972ae3004471b2bb567438b9d (patch)
tree743cca5bcf5a4e2b12ecccf544c0ca5ff6dcd0ae /src/client.cpp
parent377d5160cbaa40a4a8e83dd35d74bec6aeb208e0 (diff)
downloadmana-3c93bde383fad59972ae3004471b2bb567438b9d.tar.gz
mana-3c93bde383fad59972ae3004471b2bb567438b9d.tar.bz2
mana-3c93bde383fad59972ae3004471b2bb567438b9d.tar.xz
mana-3c93bde383fad59972ae3004471b2bb567438b9d.zip
Fix compilation on Haiku and set config and data paths for it.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index f61b5612..71e2885d 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1167,6 +1167,9 @@ void Client::initHomeDir()
mLocalDataDir = std::string(PHYSFS_getUserDir()) +
"/Library/Application Support/" +
branding.getValue("appName", "Mana");
+#elif defined __HAIKU__
+ mLocalDataDir = std::string(PHYSFS_getUserDir()) +
+ "/config/data/Mana";
#elif defined WIN32
mLocalDataDir = getSpecialFolderLocation(CSIDL_LOCAL_APPDATA);
if (mLocalDataDir.empty())
@@ -1189,6 +1192,10 @@ void Client::initHomeDir()
if (mConfigDir.empty()){
#ifdef __APPLE__
mConfigDir = mLocalDataDir + "/" + branding.getValue("appShort", "mana");
+#elif defined __HAIKU__
+ mConfigDir = std::string(PHYSFS_getUserDir()) +
+ "/config/settings/Mana" +
+ branding.getValue("appName", "Mana");
#elif defined WIN32
mConfigDir = getSpecialFolderLocation(CSIDL_APPDATA);
if (mConfigDir.empty())