mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
Add support for SCI2.1 resource patches to the fallback detector
svn-id: r49380
This commit is contained in:
parent
4cb3a2b41b
commit
95001e3676
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user