aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/file/search_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/file/search_manager.cpp')
-rw-r--r--engines/zvision/file/search_manager.cpp10
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..821b85b053 100644
--- a/engines/zvision/file/search_manager.cpp
+++ b/engines/zvision/file/search_manager.cpp
@@ -184,6 +184,16 @@ bool SearchManager::loadZix(const Common::String &name) {
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);
} else {