mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
MOHAWK: Use matchString instead of equalsIgnoreCase for resource names
A regression from 71c4329
This commit is contained in:
parent
71c4329d86
commit
cc818b444c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user