diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-01 13:27:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-01 21:33:36 +0300 |
commit | 748b2dc257650d9ff6e740496802cb977227bc21 (patch) | |
tree | 8b609eebf4b0733d5f0ccb5586d9c1999afba846 /src/resources | |
parent | e8ce245e0bbb87bc45d15b9f0eb8bf423373d203 (diff) | |
download | manaverse-748b2dc257650d9ff6e740496802cb977227bc21.tar.gz manaverse-748b2dc257650d9ff6e740496802cb977227bc21.tar.bz2 manaverse-748b2dc257650d9ff6e740496802cb977227bc21.tar.xz manaverse-748b2dc257650d9ff6e740496802cb977227bc21.zip |
move package directory variable from client into paths.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/resourcemanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 5cdb22e96..d50df6b50 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -39,6 +39,7 @@ #include "resources/spritedef.h" #include "utils/mkdir.h" +#include "utils/paths.h" #include "utils/physfscheckutils.h" #include "utils/physfsrwops.h" #include "utils/sdlcheckutils.h" @@ -427,8 +428,7 @@ std::string ResourceManager::getPath(const std::string &file) const else { // if not found in search path return the default path - path = std::string(client->getPackageDirectory()).append( - dirSeparator).append(file); + path = getPackageDir().append(dirSeparator).append(file); } return path; |