diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-22 23:26:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-22 23:26:47 +0300 |
commit | 76362b1e1d1f74bd7bd85456e660b2bebfca55cb (patch) | |
tree | eb0ad0102da5d21c97807340458855909b0be3cd | |
parent | 1a948b6772f440cda14f7cd526bd6e1555251d61 (diff) | |
download | mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.tar.gz mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.tar.bz2 mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.tar.xz mv-76362b1e1d1f74bd7bd85456e660b2bebfca55cb.zip |
fix default server configuration files on Android and SDL2.
-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 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 |