summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-01 13:27:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-01 21:33:36 +0300
commit748b2dc257650d9ff6e740496802cb977227bc21 (patch)
tree8b609eebf4b0733d5f0ccb5586d9c1999afba846 /src/resources
parente8ce245e0bbb87bc45d15b9f0eb8bf423373d203 (diff)
downloadmv-748b2dc257650d9ff6e740496802cb977227bc21.tar.gz
mv-748b2dc257650d9ff6e740496802cb977227bc21.tar.bz2
mv-748b2dc257650d9ff6e740496802cb977227bc21.tar.xz
mv-748b2dc257650d9ff6e740496802cb977227bc21.zip
move package directory variable from client into paths.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/resourcemanager.cpp4
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;