SCI: Rename the version of addAppropriateSources() used in detection
This commit is contained in:
parent
17a77ff69c
commit
fe3ed8ded2
3 changed files with 11 additions and 7 deletions
|
@ -567,7 +567,7 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const FileMap &allFiles,
|
|||
return 0;
|
||||
|
||||
ResourceManager resMan;
|
||||
resMan.addAppropriateSources(fslist);
|
||||
resMan.addAppropriateSourcesForDetection(fslist);
|
||||
resMan.init(true);
|
||||
// TODO: Add error handling.
|
||||
|
||||
|
|
|
@ -88,9 +88,6 @@ const char *getSciVersionDesc(SciVersion version) {
|
|||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#undef SCI_REQUIRE_RESOURCE_FILES
|
||||
|
||||
//#define SCI_VERBOSE_RESMAN 1
|
||||
|
||||
static const char *const s_errorDescriptions[] = {
|
||||
|
@ -639,7 +636,7 @@ int ResourceManager::addAppropriateSources() {
|
|||
return 1;
|
||||
}
|
||||
|
||||
int ResourceManager::addAppropriateSources(const Common::FSList &fslist) {
|
||||
int ResourceManager::addAppropriateSourcesForDetection(const Common::FSList &fslist) {
|
||||
ResourceSource *map = 0;
|
||||
Common::Array<ResourceSource *> sci21Maps;
|
||||
|
||||
|
@ -890,7 +887,7 @@ void ResourceManager::init(bool initFromFallbackDetector) {
|
|||
debugC(1, kDebugLevelResMan, "resMan: Detected volume version %d: %s", _volVersion, versionDescription(_volVersion));
|
||||
|
||||
if ((_mapVersion == kResVersionUnknown) && (_volVersion == kResVersionUnknown)) {
|
||||
warning("Volume and map version not detected, assuming that this is not a sci game");
|
||||
warning("Volume and map version not detected, assuming that this is not a SCI game");
|
||||
_viewType = kViewUnknown;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -314,8 +314,15 @@ public:
|
|||
*/
|
||||
void init(bool initFromFallbackDetector = false);
|
||||
|
||||
/**
|
||||
* Adds all of the resource files for a game
|
||||
*/
|
||||
int addAppropriateSources();
|
||||
int addAppropriateSources(const Common::FSList &fslist); // TODO: Switch from FSList to Common::Archive?
|
||||
|
||||
/**
|
||||
* Similar to the function above, only called from the fallback detector
|
||||
*/
|
||||
int addAppropriateSourcesForDetection(const Common::FSList &fslist); // TODO: Switch from FSList to Common::Archive?
|
||||
|
||||
/**
|
||||
* Looks up a resource's data.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue