From 748b2dc257650d9ff6e740496802cb977227bc21 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 1 Nov 2013 13:27:00 +0300 Subject: move package directory variable from client into paths. --- src/resources/resourcemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/resourcemanager.cpp') 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; -- cgit v1.2.3-60-g2f50