diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-26 01:57:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-30 02:57:14 +0300 |
commit | 29ad6702ab90fc75fe9d0422609609fd15123fc3 (patch) | |
tree | 0b9cee6f48b0dd28455e5ef86800efc30f38064d /src/resources/resourcemanager.h | |
parent | 660dcd09eb2c156e3ca8bafe0c1a339041204d33 (diff) | |
download | manaverse-29ad6702ab90fc75fe9d0422609609fd15123fc3.tar.gz manaverse-29ad6702ab90fc75fe9d0422609609fd15123fc3.tar.bz2 manaverse-29ad6702ab90fc75fe9d0422609609fd15123fc3.tar.xz manaverse-29ad6702ab90fc75fe9d0422609609fd15123fc3.zip |
Some error fixes in atlases.
Check if image already in cache and check for mapinfo before using it.
Diffstat (limited to 'src/resources/resourcemanager.h')
-rw-r--r-- | src/resources/resourcemanager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.h b/src/resources/resourcemanager.h index 551b00a33..6c089a243 100644 --- a/src/resources/resourcemanager.h +++ b/src/resources/resourcemanager.h @@ -285,6 +285,7 @@ class ResourceManager final typedef std::map<std::string, Resource*> Resources; typedef Resources::iterator ResourceIterator; + typedef Resources::const_iterator ResourceCIterator; #ifdef DEBUG_DUMP_LEAKS Resources* getResources() @@ -296,6 +297,8 @@ class ResourceManager final bool cleanOrphans(const bool always = false); + bool isInCache(const std::string &idPath) const; + static void addDelayedAnimation(AnimationDelayLoad *const animation) { mDelayedAnimations.push_back(animation); } |