diff options
author | Bastien Bouclet | 2017-02-04 14:23:33 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-03 08:50:10 +0200 |
commit | 313d53234bb0036951b9e5b6353a294aef917e3a (patch) | |
tree | 1ad48f41aeeace31dbd96b3ea6739843c3df6df3 /engines | |
parent | 7a9b91dfcd786502f173e56b1d19e9d42acce5f3 (diff) | |
download | scummvm-rg350-313d53234bb0036951b9e5b6353a294aef917e3a.tar.gz scummvm-rg350-313d53234bb0036951b9e5b6353a294aef917e3a.tar.bz2 scummvm-rg350-313d53234bb0036951b9e5b6353a294aef917e3a.zip |
MOHAWK: Be case insensitive when matching resource names
Diffstat (limited to 'engines')
-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 4a4b78e391..0ef0a6ae08 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)) + if (it->_value.name.matchString(resName, true)) 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)) + if (it->_value.name.matchString(resName, true)) return it->_key; return 0xFFFF; |