diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-28 20:31:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-28 20:31:09 +0300 |
commit | bb87f2911b63eaf80e49d689bf52ecf2042ae098 (patch) | |
tree | 0778087134ec3c5a2370d417bcadb64a1dc6a9bc /src/gui/windows/minimap.cpp | |
parent | 4415cb66734e67dfcdf8924d354107d27fb70fee (diff) | |
download | mv-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.gz mv-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.bz2 mv-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.xz mv-bb87f2911b63eaf80e49d689bf52ecf2042ae098.zip |
Move from resourcemanager functions related to files into other files.
Diffstat (limited to 'src/gui/windows/minimap.cpp')
-rw-r--r-- | src/gui/windows/minimap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/minimap.cpp b/src/gui/windows/minimap.cpp index 3607d9584..5df1b60ce 100644 --- a/src/gui/windows/minimap.cpp +++ b/src/gui/windows/minimap.cpp @@ -44,6 +44,7 @@ #include "utils/delete2.h" #include "utils/gettext.h" +#include "utils/physfstools.h" #include "utils/sdlcheckutils.h" #include "debug.h" @@ -169,14 +170,14 @@ void Minimap::setMap(const Map *const map) std::string minimapName = map->getProperty("minimap"); - if (minimapName.empty() && resman->exists(tempname)) + if (minimapName.empty() && PhysFs::exists(tempname.c_str())) minimapName = tempname; if (minimapName.empty()) { tempname = std::string("graphics/minimaps/").append( map->getFilename()).append(".png"); - if (resman->exists(tempname)) + if (PhysFs::exists(tempname.c_str())) minimapName = tempname; } |