summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-22 23:26:47 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-22 23:26:47 +0300
commit76362b1e1d1f74bd7bd85456e660b2bebfca55cb (patch)
treeeb0ad0102da5d21c97807340458855909b0be3cd /src
parent1a948b6772f440cda14f7cd526bd6e1555251d61 (diff)
downloadmv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.tar.gz
mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.tar.bz2
mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.tar.xz
mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.zip
fix default server configuration files on Android and SDL2.
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 a35a671f1..8f1110162 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -545,8 +545,9 @@ void Client::gameInit()
#ifdef USE_SDL2
if (getenv("APPDIR"))
{
- resman->addToSearchPath(std::string(getenv("APPDIR"))
- + "/data", false);
+ const std::string appDir = getenv("APPDIR");
+ resman->addToSearchPath(appDir + "/data", false);
+ resman->addToSearchPath(appDir + "/data/perserver/default", false);
}
#endif
#endif