aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/resource.h
diff options
context:
space:
mode:
authorColin Snover2016-12-14 11:27:49 -0600
committerColin Snover2017-03-30 19:46:27 -0500
commit477e31cea69f2ac4f2cf80549d6a773319868a61 (patch)
tree9efd5c927225239fb75f9ffadcb87e39b4659f74 /engines/sci/resource.h
parent30435ec0abee168af13b5c41671ee5ca41db8a88 (diff)
downloadscummvm-rg350-477e31cea69f2ac4f2cf80549d6a773319868a61.tar.gz
scummvm-rg350-477e31cea69f2ac4f2cf80549d6a773319868a61.tar.bz2
scummvm-rg350-477e31cea69f2ac4f2cf80549d6a773319868a61.zip
SCI32: Ignore invalid audio map entries in GK2
The invalid entries, which are on CD 6, appear to correspond to audio that's on CD 4 (though not with the correct offset for CD 4's RESOURCE.AUD). Skipping the invalid map entries on CD 6 should cause these audio files to be loaded from the CD 4 audio bundle if they are requested during chapter six since ScummVM combines resources from all CDs and matches on their IDs.
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r--engines/sci/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h
index a9a7a86c96..3e7a7a5e96 100644
--- a/engines/sci/resource.h
+++ b/engines/sci/resource.h
@@ -185,7 +185,7 @@ public:
}
// Convert from a resource ID to a base36 patch name
- Common::String toPatchNameBase36() {
+ Common::String toPatchNameBase36() const {
Common::String output;
output += (getType() == kResourceTypeAudio36) ? '@' : '#'; // Identifier