aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-08 13:15:05 +0000
committerFilippos Karapetis2010-06-08 13:15:05 +0000
commit707ccdbac78510a5861d9460d1503e25f6634947 (patch)
tree0c1fc7e46e988a8e1484651418fadabb0b7376a9
parentf743468ec7174088dffde0fd1a61d3afcf78280b (diff)
downloadscummvm-rg350-707ccdbac78510a5861d9460d1503e25f6634947.tar.gz
scummvm-rg350-707ccdbac78510a5861d9460d1503e25f6634947.tar.bz2
scummvm-rg350-707ccdbac78510a5861d9460d1503e25f6634947.zip
Add a version check for base36 encoded patches - they were introduced in SCI2
svn-id: r49501
-rw-r--r--engines/sci/resource.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index 400f0b1e67..fd81c8d92f 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -621,7 +621,9 @@ void ResourceManager::scanNewSources() {
case kSourceDirectory:
readResourcePatches(source);
#ifdef ENABLE_SCI32
- readResourcePatchesBase36(source);
+ // We can't use getSciVersion() at this point, thus using _volVersion
+ if (_volVersion == kResVersionSci32) // SCI2+
+ readResourcePatchesBase36(source);
#endif
readWaveAudioPatches();
break;
@@ -1180,6 +1182,8 @@ void ResourceManager::readResourcePatchesBase36(ResourceSource *source) {
inputName.toUppercase();
if (inputName.hasPrefix("BOOT")) // skip bootdisk.*
continue;
+ if (inputName.hasSuffix("DRV")) // skip AUD*.DRV
+ continue;
inputName.deleteChar(0); // delete the first character (type)
inputName.deleteChar(7); // delete the dot