aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-02 00:31:19 +0200
committerFilippos Karapetis2015-01-02 00:31:19 +0200
commit976b4adb4e114c19e47efb3b18a52b1c1c1f44c4 (patch)
tree0eed9f95dccfd811dea5e243fb35ca1a6ff5661d /engines/zvision
parent0c54278f6c2ea6d2a2ba10ed1e833695620625ca (diff)
downloadscummvm-rg350-976b4adb4e114c19e47efb3b18a52b1c1c1f44c4.tar.gz
scummvm-rg350-976b4adb4e114c19e47efb3b18a52b1c1c1f44c4.tar.bz2
scummvm-rg350-976b4adb4e114c19e47efb3b18a52b1c1c1f44c4.zip
ZVISION: Add support for unmodified INQUIS.ZIX files
This will greatly help users copy the unmodified file from the game CDs of ZGI and get the game working straight away
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/file/search_manager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/zvision/file/search_manager.cpp b/engines/zvision/file/search_manager.cpp
index 7a907df39c..ec250ff648 100644
--- a/engines/zvision/file/search_manager.cpp
+++ b/engines/zvision/file/search_manager.cpp
@@ -169,8 +169,13 @@ void SearchManager::loadZix(const Common::String &name) {
line.trim();
if (line.matchString("----------*", true))
break;
- else if (line.matchString("DIR:*", true)) {
+ else if (line.matchString("DIR:*", true) || line.matchString("CD0:*", true) || line.matchString("CD1:*", true)) {
Common::String path(line.c_str() + 5);
+ // Check if INQUIS.ZIX refers to the ZGI folder, and check the game
+ // root folder instead
+ if (path.hasPrefix("zgi\\"))
+ path = Common::String(path.c_str() + 4);
+
Common::Archive *arc;
char tempPath[128];
strcpy(tempPath, path.c_str());