diff options
author | Strangerke | 2016-04-12 08:00:11 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 43c65df52620bc7f8cf013c460e77620d331836e (patch) | |
tree | 4eb0a0e6ca25bf8a5a8fbb8dec0d5fc3f36ad6c2 /engines/gnap/resource.h | |
parent | 52f0712b66fff3351ae6c2b5fd8e1abcdaad6001 (diff) | |
download | scummvm-rg350-43c65df52620bc7f8cf013c460e77620d331836e.tar.gz scummvm-rg350-43c65df52620bc7f8cf013c460e77620d331836e.tar.bz2 scummvm-rg350-43c65df52620bc7f8cf013c460e77620d331836e.zip |
GNAP: Use debug channels
Diffstat (limited to 'engines/gnap/resource.h')
-rw-r--r-- | engines/gnap/resource.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/gnap/resource.h b/engines/gnap/resource.h index b689869d2e..dc67097adf 100644 --- a/engines/gnap/resource.h +++ b/engines/gnap/resource.h @@ -122,11 +122,11 @@ public: ResourceClass *get(int resourceId) { Resource *resource = find(resourceId); if (!resource) { - debug(1, "Loading resource type %d with ID %08X from disk", ResourceType, resourceId); + debugC(kDebugBasic, "Loading resource type %d with ID %08X from disk", ResourceType, resourceId); resource = new Resource(load(resourceId)); _cache[resourceId] = resource; } else { - debug(1, "Resource type %d with ID %08X was in cache", ResourceType, resourceId); + debugC(kDebugBasic, "Resource type %d with ID %08X was in cache", ResourceType, resourceId); } resource->_isLocked = true; return resource->_obj; @@ -139,7 +139,6 @@ public: } void purge(bool force = false) { - debug("Count before purge: %d", _cache.size()); for (CacheMapIterator it = _cache.begin(); it != _cache.end(); ++it) { Resource *resource = it->_value; if (force || !resource->_isLocked) { @@ -147,7 +146,6 @@ public: _cache.erase(it); } } - debug("Count after purge: %d", _cache.size()); } protected: |