diff options
author | Bastien Bouclet | 2017-06-28 09:55:45 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | f29197e32c023a3c7969409b2bec2f94edd4c53a (patch) | |
tree | e87ac4e2747a30dae9d28062e18b963531c86799 /engines/mohawk/resource.cpp | |
parent | 08e642314e3e9f5645753a6fc99d41921e1a55f1 (diff) | |
download | scummvm-rg350-f29197e32c023a3c7969409b2bec2f94edd4c53a.tar.gz scummvm-rg350-f29197e32c023a3c7969409b2bec2f94edd4c53a.tar.bz2 scummvm-rg350-f29197e32c023a3c7969409b2bec2f94edd4c53a.zip |
MOHAWK: Don't allow string patterns when looking for resources
The last pattern based query was removed from Riven
Diffstat (limited to 'engines/mohawk/resource.cpp')
-rw-r--r-- | engines/mohawk/resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp index 0ef0a6ae08..b9ecdb38ee 100644 --- a/engines/mohawk/resource.cpp +++ b/engines/mohawk/resource.cpp @@ -74,7 +74,7 @@ bool Archive::hasResource(uint32 tag, const Common::String &resName) const { const ResourceMap &resMap = _types[tag]; for (ResourceMap::const_iterator it = resMap.begin(); it != resMap.end(); it++) - if (it->_value.name.matchString(resName, true)) + if (it->_value.name.equalsIgnoreCase(resName)) return true; return false; @@ -113,7 +113,7 @@ uint16 Archive::findResourceID(uint32 tag, const Common::String &resName) const const ResourceMap &resMap = _types[tag]; for (ResourceMap::const_iterator it = resMap.begin(); it != resMap.end(); it++) - if (it->_value.name.matchString(resName, true)) + if (it->_value.name.equalsIgnoreCase(resName)) return it->_key; return 0xFFFF; |