aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-04-12 13:40:00 +0200
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commit0577aae277db3521f0068dc23418b39b49cfaa5d (patch)
treedb163ae8c4de418c5e2f710aecb8635afa7e511d
parent43c65df52620bc7f8cf013c460e77620d331836e (diff)
downloadscummvm-rg350-0577aae277db3521f0068dc23418b39b49cfaa5d.tar.gz
scummvm-rg350-0577aae277db3521f0068dc23418b39b49cfaa5d.tar.bz2
scummvm-rg350-0577aae277db3521f0068dc23418b39b49cfaa5d.zip
GNAP: Fix compilation
-rw-r--r--engines/gnap/resource.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/gnap/resource.h b/engines/gnap/resource.h
index dc67097adf..73cee761c6 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) {
- debugC(kDebugBasic, "Loading resource type %d with ID %08X from disk", ResourceType, resourceId);
+ debug(9, "Loading resource type %d with ID %08X from disk", ResourceType, resourceId);
resource = new Resource(load(resourceId));
_cache[resourceId] = resource;
} else {
- debugC(kDebugBasic, "Resource type %d with ID %08X was in cache", ResourceType, resourceId);
+ debug(9, "Resource type %d with ID %08X was in cache", ResourceType, resourceId);
}
resource->_isLocked = true;
return resource->_obj;
@@ -156,10 +156,10 @@ protected:
Resource(ResourceClass *obj) : _obj(obj), _isLocked(false) {}
~Resource() { delete _obj; }
};
-
+
typedef Common::HashMap<int, Resource*> CacheMap;
typedef typename CacheMap::iterator CacheMapIterator;
-
+
DatManager *_dat;
CacheMap _cache;
@@ -169,7 +169,7 @@ protected:
return it->_value;
return nullptr;
}
-
+
ResourceClass *load(int resourceId) {
if (_dat->getResourceType(resourceId) != ResourceType) {
error("ResourceCache::load() Wrong resource type: Expected %d, got %d", ResourceType, _dat->getResourceType(resourceId));