From cc818b444c454d2f8978655d5c29f379cbe21376 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 28 Jun 2011 13:51:03 -0400 Subject: MOHAWK: Use matchString instead of equalsIgnoreCase for resource names A regression from 71c4329 --- engines/mohawk/resource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp index 2dc6d2252a..df8271dc5a 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.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; -- cgit v1.2.3