aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-01 20:37:55 +0000
committerFilippos Karapetis2010-06-01 20:37:55 +0000
commit95001e3676c98b5d13dee3340efcc20e6f4d9f77 (patch)
tree0cfafada81a44ecacf74a6bb6873c717ba773149 /engines
parent4cb3a2b41b5f92fda50f6db15e4e69be7dd0129a (diff)
downloadscummvm-rg350-95001e3676c98b5d13dee3340efcc20e6f4d9f77.tar.gz
scummvm-rg350-95001e3676c98b5d13dee3340efcc20e6f4d9f77.tar.bz2
scummvm-rg350-95001e3676c98b5d13dee3340efcc20e6f4d9f77.zip
Add support for SCI2.1 resource patches to the fallback detector
svn-id: r49380
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/resource.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/sci/resource.cpp b/engines/sci/resource.cpp
index c36feb57c6..96bef504f7 100644
--- a/engines/sci/resource.cpp
+++ b/engines/sci/resource.cpp
@@ -537,8 +537,6 @@ int ResourceManager::addAppropriateSources(const Common::FSList &fslist) {
Common::String filename = file->getName();
filename.toLowercase();
- // TODO: Load the SCI2.1+ maps (resmap.*) in concurrence with the volumes to
- // get the proper volume numbers from the maps.
if (filename.contains("resource.map") || filename.contains("resmap.000")) {
map = addExternalMap(file);
break;
@@ -564,6 +562,14 @@ int ResourceManager::addAppropriateSources(const Common::FSList &fslist) {
}
}
+#ifdef ENABLE_SCI32
+ // SCI2.1 resource patches
+ if (Common::File::exists("RESMAP.PAT") && Common::File::exists("RESSCI.PAT")) {
+ // We add this resource with a map which surely won't exist
+ addSource(addExternalMap("RESMAP.PAT", 100), kSourceVolume, "RESSCI.PAT", 100);
+ }
+#endif
+
// This function is only called by the advanced detector, and we don't really need
// to add a patch directory or message.map here