From e2f03241a1ba9d6b536b0b7a6f995e4e8d894408 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 May 2016 14:13:51 +0300 Subject: Move images load function from resourcemanager into separate file. --- src/resources/mapreader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resources/mapreader.cpp') diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 979153c87..036918f66 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -46,6 +46,8 @@ #include "resources/map/tileanimation.h" +#include "resources/loaders/imageloader.h" + #include "resources/resourcemanager/resourcemanager.h" #include "utils/base64.h" @@ -1048,7 +1050,7 @@ Tileset *MapReader::readTileset(XmlNodePtr node, if (!source.empty()) { - Image *const tilebmp = resourceManager->getImage( + Image *const tilebmp = ImageLoader::getImage( resolveRelativePath(pathDir, source)); if (tilebmp) -- cgit v1.2.3-70-g09d2