Lines Matching refs:resIndex
51 uint32 ArchiveReader::openResource(uint resIndex) { in openResource() argument
52 uint32 resourceSize = getResourceSize(resIndex); in openResource()
53 seek(_offsets[resIndex]); in openResource()
60 uint32 ArchiveReader::getResourceSize(uint resIndex) { in getResourceSize() argument
61 return _offsets[resIndex + 1] - _offsets[resIndex]; in getResourceSize()
64 void ArchiveReader::dump(uint resIndex) { in dump() argument
65 int32 resourceSize = getResourceSize(resIndex); in dump()
68 Common::String fn = Common::String::format("toltecs_res.%03d", resIndex); in dump()
70 openResource(resIndex); in dump()
102 Resource *ResourceCache::load(uint resIndex) { in load() argument
103 ResourceMap::iterator item = _cache.find(resIndex); in load()
105 debug(1, "ResourceCache::load(%d) From cache", resIndex); in load()
108 debug(1, "ResourceCache::load(%d) From disk", resIndex); in load()
112 resItem->size = _vm->_arc->openResource(resIndex); in load()
118 _cache[resIndex] = resItem; in load()