diff options
author | Eugene Sandulenko | 2016-04-12 13:40:00 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 09:54:21 +0200 |
commit | 0577aae277db3521f0068dc23418b39b49cfaa5d (patch) | |
tree | db163ae8c4de418c5e2f710aecb8635afa7e511d /engines/gnap/resource.h | |
parent | 43c65df52620bc7f8cf013c460e77620d331836e (diff) | |
download | scummvm-rg350-0577aae277db3521f0068dc23418b39b49cfaa5d.tar.gz scummvm-rg350-0577aae277db3521f0068dc23418b39b49cfaa5d.tar.bz2 scummvm-rg350-0577aae277db3521f0068dc23418b39b49cfaa5d.zip |
GNAP: Fix compilation
Diffstat (limited to 'engines/gnap/resource.h')
-rw-r--r-- | engines/gnap/resource.h | 10 |
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)); |