diff options
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 { |