diff options
author | Filippos Karapetis | 2015-01-07 23:48:01 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-01-07 23:49:13 +0200 |
commit | a9b79544a11eba0649905330f58c4ff6161687e8 (patch) | |
tree | fd521c2a30d301b68e671df4f16c03c76808b015 /engines/zvision | |
parent | 474ef741226ac56bd146c79be96c55c00551593b (diff) | |
download | scummvm-rg350-a9b79544a11eba0649905330f58c4ff6161687e8.tar.gz scummvm-rg350-a9b79544a11eba0649905330f58c4ff6161687e8.tar.bz2 scummvm-rg350-a9b79544a11eba0649905330f58c4ff6161687e8.zip |
ZVISION: Add support for an unmodified ZIX file for Zork: Nemesis
This helps in copying the game files straight off the CD
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/zvision.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 848cba0f66..5b6d63e869 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -185,9 +185,15 @@ void ZVision::initialize() { _searchManager->addDir("addon"); if (_gameDescription->gameId == GID_GRANDINQUISITOR) { - _searchManager->loadZix("INQUIS.ZIX"); - } else if (_gameDescription->gameId == GID_NEMESIS) - _searchManager->loadZix("NEMESIS.ZIX"); + if (!_searchManager->loadZix("INQUIS.ZIX")) + error("Unable to load the game ZIX file"); + } else if (_gameDescription->gameId == GID_NEMESIS) { + if (!_searchManager->loadZix("NEMESIS.ZIX")) { + // The game might not be installed, try MEDIUM.ZIX instead + if (!_searchManager->loadZix("ZNEMSCR/MEDIUM.ZIX")) + error("Unable to load the game ZIX file"); + } + } initScreen(); |