From 76362b1e1d1f74bd7bd85456e660b2bebfca55cb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Oct 2013 23:26:47 +0300 Subject: fix default server configuration files on Android and SDL2. --- src/client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/client.cpp') 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 -- cgit v1.2.3-60-g2f50