From 7c23eae1027d242c9169b791d99d5f22e3159816 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 18 Jan 2015 21:30:07 +0200 Subject: ZVISION: Fix path handling in case-sensitive file systems (bug #6775) A regression from commit d70503cc98. Thanks to wjp for bisecting. --- engines/zvision/file/search_manager.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines/zvision/file/search_manager.cpp') 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::iterator it = _dirList.begin(); it != _dirList.end(); ++it) { + if (path.equalsIgnoreCase(*it)) { + path = *it; + break; + } + } + } if (path.matchString("*.zfs", true)) { arc = new ZfsArchive(path); -- cgit v1.2.3