diff options
Diffstat (limited to 'src/common/resourcemanager.cpp')
-rw-r--r-- | src/common/resourcemanager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/resourcemanager.cpp b/src/common/resourcemanager.cpp index 8db4546..5d2a8cf 100644 --- a/src/common/resourcemanager.cpp +++ b/src/common/resourcemanager.cpp @@ -41,11 +41,14 @@ void ResourceManager::initialize() { PHYSFS_permitSymbolicLinks(1); + const std::string serverPath = + Configuration::getValue("serverPath", "."); const std::string clientDataPath = Configuration::getValue("clientDataPath", "example/clientdata"); const std::string serverDataPath = Configuration::getValue("serverDataPath", "example/serverdata"); + PHYSFS_addToSearchPath(serverPath.c_str(), 1); PHYSFS_addToSearchPath(clientDataPath.c_str(), 1); PHYSFS_addToSearchPath(serverDataPath.c_str(), 1); } |