From 735a20bc923d0a7bf4b0ca0e4d005413ca8de0f8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 25 Aug 2013 15:36:23 +0300 Subject: add code for image creation/deletion. --- src/resources/resourcemanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/resources/resourcemanager.cpp') 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 { -- cgit v1.2.3-60-g2f50