From 95001e3676c98b5d13dee3340efcc20e6f4d9f77 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 1 Jun 2010 20:37:55 +0000 Subject: Add support for SCI2.1 resource patches to the fallback detector svn-id: r49380 --- engines/sci/resource.cpp | 10 ++++++++-- 1 file 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 -- cgit v1.2.3