aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/mohawk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mohawk/mohawk.cpp')
-rw-r--r--engines/mohawk/mohawk.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/mohawk/mohawk.cpp b/engines/mohawk/mohawk.cpp
index 54e753dfe5..4558f95d0b 100644
--- a/engines/mohawk/mohawk.cpp
+++ b/engines/mohawk/mohawk.cpp
@@ -93,15 +93,6 @@ Common::SeekableReadStream *MohawkEngine::getResource(uint32 tag, uint16 id) {
return NULL;
}
-Common::SeekableReadStream *MohawkEngine::getResource(uint32 tag, const Common::String &resName) {
- for (uint32 i = 0; i < _mhk.size(); i++)
- if (_mhk[i]->hasResource(tag, resName))
- return _mhk[i]->getResource(tag, resName);
-
- error("Could not find a '%s' resource matching name '%s'", tag2str(tag), resName.c_str());
- return NULL;
-}
-
bool MohawkEngine::hasResource(uint32 tag, uint16 id) {
for (uint32 i = 0; i < _mhk.size(); i++)
if (_mhk[i]->hasResource(tag, id))
@@ -127,4 +118,13 @@ uint32 MohawkEngine::getResourceOffset(uint32 tag, uint16 id) {
return 0;
}
+uint16 MohawkEngine::findResourceID(uint32 tag, const Common::String &resName) {
+ for (uint32 i = 0; i < _mhk.size(); i++)
+ if (_mhk[i]->hasResource(tag, resName))
+ return _mhk[i]->findResourceID(tag, resName);
+
+ error("Could not find a '%s' resource matching name '%s'", tag2str(tag), resName.c_str());
+ return 0xFFFF;
+}
+
} // End of namespace Mohawk