Add support for SCI2.1 resource patches to the fallback detector

svn-id: r49380
This commit is contained in:
Filippos Karapetis 2010-06-01 20:37:55 +00:00
parent 4cb3a2b41b
commit 95001e3676

View File

@ -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