aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/file
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-08 01:44:06 +0200
committerFilippos Karapetis2015-01-08 01:44:06 +0200
commit913075df90307a5331870009e0b29bfc87103ef6 (patch)
tree08b7a7c702e5c582ebdde25663d30c833d7b23f9 /engines/zvision/file
parenta9b79544a11eba0649905330f58c4ff6161687e8 (diff)
downloadscummvm-rg350-913075df90307a5331870009e0b29bfc87103ef6.tar.gz
scummvm-rg350-913075df90307a5331870009e0b29bfc87103ef6.tar.bz2
scummvm-rg350-913075df90307a5331870009e0b29bfc87103ef6.zip
ZVISION: Also handle paths in NEMESIS.ZIX for the DVD ver. of Nemesis
Diffstat (limited to 'engines/zvision/file')
-rw-r--r--engines/zvision/file/search_manager.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/zvision/file/search_manager.cpp b/engines/zvision/file/search_manager.cpp
index 80792b07d8..9f709dd0a1 100644
--- a/engines/zvision/file/search_manager.cpp
+++ b/engines/zvision/file/search_manager.cpp
@@ -165,6 +165,11 @@ bool SearchManager::loadZix(const Common::String &name) {
if (path[i] == '\\')
path.setChar('/', i);
+ // Check if NEMESIS.ZIX/MEDIUM.ZIX refers to the znemesis folder, and
+ // check the game root folder instead
+ if (path.hasPrefix("znemesis/"))
+ path = Common::String(path.c_str() + 9);
+
// Check if INQUIS.ZIX refers to the ZGI folder, and check the game
// root folder instead
if (path.hasPrefix("zgi/"))