summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-21 22:51:29 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-02-21 22:56:03 +0100
commitd4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c (patch)
treec9bc88bd7be5f330132491efee826ebfe9dd8d4e /src
parente95cf652072d6480454ffc2d5349d4ebbf597b45 (diff)
downloadmana-d4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c.tar.gz
mana-d4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c.tar.bz2
mana-d4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c.tar.xz
mana-d4bb2d1d0e82ca9d046f9b2346a7893ca11e8d9c.zip
Renamed local data directory back to just "mana"
This name represents the name of the client software, not the branding it received. Cleaned up the rest of the code a bit. Reviewed-by: Jared Adams
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 12564834..abe3500c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1090,10 +1090,10 @@ void Client::initHomeDir()
mLocalDataDir = getSpecialFolderLocation(CSIDL_LOCAL_APPDATA);
if (mLocalDataDir.empty())
mLocalDataDir = std::string(PHYSFS_getUserDir());
- mLocalDataDir += "/manasource";
+ mLocalDataDir += "/Mana";
#else
mLocalDataDir = std::string(PHYSFS_getUserDir()) +
- "/.local/share/manasource";
+ "/.local/share/mana";
#endif
}
@@ -1105,18 +1105,19 @@ 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", "manasource");
+ mConfigDir = mLocalDataDir + "/" + app;
#elif defined WIN32
mConfigDir = getSpecialFolderLocation(CSIDL_APPDATA);
if (mConfigDir.empty())
mConfigDir = mLocalDataDir;
else
- mConfigDir += "/mana/" + branding.getValue("appShort", "manasource");
+ mConfigDir += "/mana/" + app;
#else
- mConfigDir = std::string(PHYSFS_getUserDir()) +
- "/.config/mana/" + branding.getValue("appShort", "manasource");
+ mConfigDir = std::string(PHYSFS_getUserDir()) + "/.config/mana/" + app;
#endif
}