summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Sagunov <danilka.pro@gmail.com>2012-10-15 20:15:50 +0400
committerDan Sagunov <danilka.pro@gmail.com>2012-10-15 20:15:50 +0400
commit875ece90ff94c4cf295b53c8bb37d9238ece38e9 (patch)
tree1bde59fb793c2d373b776d08d25b17f89d4af057 /src
parent6d7abd9f75ed62e0d3a8ac9def1a85096e4dcb49 (diff)
downloadplus-875ece90ff94c4cf295b53c8bb37d9238ece38e9.tar.gz
plus-875ece90ff94c4cf295b53c8bb37d9238ece38e9.tar.bz2
plus-875ece90ff94c4cf295b53c8bb37d9238ece38e9.tar.xz
plus-875ece90ff94c4cf295b53c8bb37d9238ece38e9.zip
Fixed config and localdata dirs
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 12a50b45d..cfc19446b 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1673,6 +1673,8 @@ void Client::initLocalDataDir()
if (mLocalDataDir.empty())
mLocalDataDir = std::string(PHYSFS_getUserDir());
mLocalDataDir += "/Mana";
+#elif defined __ANDROID__
+ mLocalDataDir = "local";
#else
mLocalDataDir = std::string(PHYSFS_getUserDir()) +
".local/share/mana";
@@ -1717,8 +1719,7 @@ void Client::initConfigDir()
else
mConfigDir += "/mana/" + branding.getValue("appShort", "mana");
#elif defined __ANDROID__
- mConfigDir = "/mnt/sdcard/Android/data/org.evolonline.manaplus"
- "/config/" + branding.getValue("appShort", "mana");
+ mConfigDir = "config";
#else
mConfigDir = std::string(PHYSFS_getUserDir()) +
"/.config/mana/" + branding.getValue("appShort", "mana");