diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/file/search_manager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/zvision/file/search_manager.cpp b/engines/zvision/file/search_manager.cpp index 9f709dd0a1..1ae1ff71ae 100644 --- a/engines/zvision/file/search_manager.cpp +++ b/engines/zvision/file/search_manager.cpp @@ -183,6 +183,16 @@ bool SearchManager::loadZix(const Common::String &name) { path.deleteChar(0); if (path.size() && path.hasSuffix("/")) path.deleteLastChar(); + + // Handle paths in case-sensitive file systems (bug #6775) + if (path.size()) { + for (Common::List<Common::String>::iterator it = _dirList.begin(); it != _dirList.end(); ++it) { + if (path.equalsIgnoreCase(*it)) { + path = *it; + break; + } + } + } if (path.matchString("*.zfs", true)) { arc = new ZfsArchive(path); |