summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-21 23:23:24 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-21 23:23:24 +0100
commit458401d64fbe500295cc8e903702638fde0ab934 (patch)
tree3d1c606f118dba2b4f38fa80614bf30fdc12277c /src/client.cpp
parente6cd1f9cb82811d05e08aef0493eeba9cc41a95d (diff)
parentd4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c (diff)
downloadmana-458401d64fbe500295cc8e903702638fde0ab934.tar.gz
mana-458401d64fbe500295cc8e903702638fde0ab934.tar.bz2
mana-458401d64fbe500295cc8e903702638fde0ab934.tar.xz
mana-458401d64fbe500295cc8e903702638fde0ab934.zip
Merge branch '0.5'
Translation file updates ignored. Conflicts: src/client.cpp src/commandhandler.cpp src/gui/popupmenu.cpp src/localplayer.cpp
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 71e2885d..7dbbdc88 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1189,22 +1189,23 @@ void Client::initHomeDir()
mConfigDir = mOptions.configDir;
- if (mConfigDir.empty()){
+ if (mConfigDir.empty())
+ {
+ const std::string app = branding.getValue("appShort", "manasource");
#ifdef __APPLE__
- mConfigDir = mLocalDataDir + "/" + branding.getValue("appShort", "mana");
+ mConfigDir = mLocalDataDir + "/" + app;
#elif defined __HAIKU__
mConfigDir = std::string(PHYSFS_getUserDir()) +
"/config/settings/Mana" +
- branding.getValue("appName", "Mana");
+ branding.getValue("appName", "manasource");
#elif defined WIN32
mConfigDir = getSpecialFolderLocation(CSIDL_APPDATA);
if (mConfigDir.empty())
mConfigDir = mLocalDataDir;
else
- mConfigDir += "/mana/" + branding.getValue("appShort", "Mana");
+ mConfigDir += "/mana/" + app;
#else
- mConfigDir = std::string(PHYSFS_getUserDir()) +
- "/.config/mana/" + branding.getValue("appShort", "mana");
+ mConfigDir = std::string(PHYSFS_getUserDir()) + "/.config/mana/" + app;
#endif
}