MADS: Make resource file access case insensitive

This commit is contained in:
Paul Gilbert 2014-03-08 08:25:46 -05:00
parent 3399516c5e
commit 8bfa5f1da2

View File

@ -199,7 +199,7 @@ bool HagArchive::getHeaderEntry(const Common::String &resourceName,
Common::List<HagEntry>::iterator ei;
for (ei = hagIndex._entries.begin(); ei != hagIndex._entries.end(); ++ei) {
hagEntry = *ei;
if (hagEntry._resourceName == resName)
if (hagEntry._resourceName.compareToIgnoreCase(resName) == 0)
return true;
}
}