mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
GUI: Do an case-insensitive filename comparison.
Should be a bit safer, in case there's files with different cases, which match by chance.
This commit is contained in:
parent
4531f0173e
commit
47edab71e8
@ -1412,7 +1412,7 @@ const Graphics::Font *ThemeEngine::loadFont(const Common::String &filename) {
|
||||
for (Common::ArchiveMemberList::const_iterator i = members.begin(), end = members.end(); i != end; ++i) {
|
||||
Common::SeekableReadStream *stream = (*i)->createReadStream();
|
||||
if (stream) {
|
||||
if ((*i)->getName() == cacheFilename) {
|
||||
if ((*i)->getName().equalsIgnoreCase(cacheFilename)) {
|
||||
font = Graphics::BdfFont::loadFromCache(*stream);
|
||||
} else {
|
||||
font = Graphics::BdfFont::loadFont(*stream);
|
||||
|
Loading…
x
Reference in New Issue
Block a user