summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-02 16:13:36 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-03 21:50:05 +0300
commitf651273ebf2a8b11aa01ed1434ecb613177ced6a (patch)
treec51d2bed1476270e27ad95c5a46e15af32eaccdd /src/resources/resourcemanager.cpp
parent30846b7f68f1ad05a0719ae37f75fd2901a6545a (diff)
downloadmanaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.gz
manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.bz2
manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.tar.xz
manaplus-f651273ebf2a8b11aa01ed1434ecb613177ced6a.zip
Add gui mode for dyecmd. Now only basic code added.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 0c0a5bd7c..bec7914fc 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -778,6 +778,7 @@ Resource *ResourceManager::getShaderProgram(const std::string &vertex,
}
#endif
+#ifndef DYECMD
struct WalkLayerLoader final
{
const std::string name;
@@ -788,17 +789,15 @@ struct WalkLayerLoader final
if (!v)
return nullptr;
-#ifdef DYECMD
- return nullptr;
-#else
const WalkLayerLoader *const rl = static_cast<const
WalkLayerLoader *const>(v);
Resource *const resource = NavigationManager::loadWalkLayer(rl->map);
return resource;
-#endif
}
};
+#endif
+#ifndef DYECMD
WalkLayer *ResourceManager::getWalkLayer(const std::string &name,
Map *const map)
{
@@ -806,6 +805,13 @@ WalkLayer *ResourceManager::getWalkLayer(const std::string &name,
return static_cast<WalkLayer*>(get("map_" + name,
WalkLayerLoader::load, &rl));
}
+#else
+WalkLayer *ResourceManager::getWalkLayer(const std::string &name A_UNUSED,
+ Map *const map A_UNUSED)
+{
+ return nullptr;
+}
+#endif
struct SpriteDefLoader final
{