diff options
author | Dan Sagunov <danilka.pro@gmail.com> | 2012-10-15 20:15:50 +0400 |
---|---|---|
committer | Dan Sagunov <danilka.pro@gmail.com> | 2012-10-15 20:15:50 +0400 |
commit | 875ece90ff94c4cf295b53c8bb37d9238ece38e9 (patch) | |
tree | 1bde59fb793c2d373b776d08d25b17f89d4af057 | |
parent | 6d7abd9f75ed62e0d3a8ac9def1a85096e4dcb49 (diff) | |
download | manaverse-875ece90ff94c4cf295b53c8bb37d9238ece38e9.tar.gz manaverse-875ece90ff94c4cf295b53c8bb37d9238ece38e9.tar.bz2 manaverse-875ece90ff94c4cf295b53c8bb37d9238ece38e9.tar.xz manaverse-875ece90ff94c4cf295b53c8bb37d9238ece38e9.zip |
Fixed config and localdata dirs
-rw-r--r-- | src/client.cpp | 5 |
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"); |