aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorColin Snover2017-08-26 18:05:56 -0500
committerColin Snover2017-08-26 18:09:47 -0500
commitb17c66981e0213fe1d437a14c724a02c9073dc94 (patch)
tree8099ae1377ad7b1d694477e7c0dc04252d74864b /engines/sci
parentc0d3d5776e5fd976c4fd25c452c719bf5bd6d300 (diff)
downloadscummvm-rg350-b17c66981e0213fe1d437a14c724a02c9073dc94.tar.gz
scummvm-rg350-b17c66981e0213fe1d437a14c724a02c9073dc94.tar.bz2
scummvm-rg350-b17c66981e0213fe1d437a14c724a02c9073dc94.zip
SCI32: Ignore invalid audio map in GK2 DE
Fixes Trac#10143.
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/resource_audio.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sci/resource_audio.cpp b/engines/sci/resource_audio.cpp
index 3484a06395..08f5fb8891 100644
--- a/engines/sci/resource_audio.cpp
+++ b/engines/sci/resource_audio.cpp
@@ -500,6 +500,17 @@ int ResourceManager::readAudioMapSCI11(IntMapResourceSource *map) {
continue;
}
+ // Map 2020 on CD 1 of the German release of GK2 is invalid. This
+ // content does not appear to ever be used by the game (it does not
+ // even exist in the US release), and there is a correct copy of it
+ // on CD 6, so just ignore the bad copy on CD 1
+ if (g_sci->getGameId() == GID_GK2 &&
+ g_sci->getLanguage() == Common::DE_DEU &&
+ map->_volumeNumber == 1 &&
+ map->_mapNumber == 2020) {
+ continue;
+ }
+
addResource(id, src, offset + syncSize, 0, map->getLocationName());
}
}