MOHAWK: Use matchString instead of equalsIgnoreCase for resource names

A regression from 71c4329
This commit is contained in:
Matthew Hoops 2011-06-28 13:51:03 -04:00
parent 71c4329d86
commit cc818b444c

View File

@ -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.equalsIgnoreCase(resName))
if (it->_value.name.matchString(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.equalsIgnoreCase(resName))
if (it->_value.name.matchString(resName))
return it->_key;
return 0xFFFF;