diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-25 15:36:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-25 15:36:23 +0300 |
commit | 735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8 (patch) | |
tree | 6c8bd501bee54a9320206ed1792ead2b15743471 /src/resources/resourcemanager.cpp | |
parent | 2ed588669e77c3dc9d6cae36ee148cab3125b901 (diff) | |
download | manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.gz manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.bz2 manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.tar.xz manaverse-735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8.zip |
add code for image creation/deletion.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 03cc2bc41..a3adce7bb 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -448,6 +448,9 @@ bool ResourceManager::addResource(const std::string &idPath, { resource->incRef(); resource->mIdPath = idPath; +#ifdef DEBUG_IMAGES + logger->log("set name %p, %s", resource, resource->mIdPath.c_str()); +#endif mResources[idPath] = resource; return true; } @@ -517,6 +520,9 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun, { resource->incRef(); resource->mIdPath = idPath; +#ifdef DEBUG_IMAGES + logger->log("set name %p, %s", resource, resource->mIdPath.c_str()); +#endif mResources[idPath] = resource; cleanOrphans(); } @@ -531,6 +537,9 @@ Resource *ResourceManager::get(const std::string &idPath, const generator fun, { resource->incRef(); resource->mIdPath = idPath; +#ifdef DEBUG_IMAGES + logger->log("set name %p, %s", resource, resource->mIdPath.c_str()); +#endif } else { |