diff options
author | Filippos Karapetis | 2010-01-06 16:39:48 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-06 16:39:48 +0000 |
commit | 9a99226d31570e83eac727fb2f001d1cbc7ac218 (patch) | |
tree | b74080473be13c0dd0a2bc38a6afee8b5c61f357 /engines/sci | |
parent | 8c79b6f6ee2cb11e1352df5fa4faf70903eca364 (diff) | |
download | scummvm-rg350-9a99226d31570e83eac727fb2f001d1cbc7ac218.tar.gz scummvm-rg350-9a99226d31570e83eac727fb2f001d1cbc7ac218.tar.bz2 scummvm-rg350-9a99226d31570e83eac727fb2f001d1cbc7ac218.zip |
Removed a hack from the fallback detector, used to distinguish some demos from their full versions
svn-id: r47086
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/detection.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index e6804dd150..ce6cfe14c1 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -195,9 +195,6 @@ Common::Language charToScummVMLanguage(const char c) { const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fslist) const { bool foundResMap = false; bool foundRes000 = false; - // This flag is used to determine if the size of resource.000 is less than 1MB, to distinguish - // between full and demo versions - bool smallResource000Size = false; // Set some defaults s_fallbackDesc.extra = ""; @@ -246,13 +243,6 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl delete tmpStream; } - if (filename.contains("resource.000")) { - Common::SeekableReadStream *tmpStream = file->createReadStream(); - if (tmpStream->size() < 1 * 1024 * 1024) - smallResource000Size = true; - delete tmpStream; - } - if (filename.contains("resource.000") || filename.contains("resource.001") || filename.contains("ressci.000") || filename.contains("ressci.001")) foundRes000 = true; @@ -342,20 +332,6 @@ const ADGameDescription *SciMetaEngine::fallbackDetect(const Common::FSList &fsl delete resMan; - // Distinguish demos from full versions - if (!strcmp(s_fallbackDesc.gameid, "castlebrain") && !Common::File::exists("resource.002")) { - // The Spanish full version doesn't have resource.002, but we can distinguish it from the - // demo from the size of resource.000 - if (smallResource000Size) - s_fallbackDesc.flags |= ADGF_DEMO; - } - - if (!strcmp(s_fallbackDesc.gameid, "islandbrain") && smallResource000Size) - s_fallbackDesc.flags |= ADGF_DEMO; - - if (!strcmp(s_fallbackDesc.gameid, "kq6") && smallResource000Size) - s_fallbackDesc.flags |= ADGF_DEMO; - // Fill in extras field if (!strcmp(s_fallbackDesc.gameid, "lsl1sci") || !strcmp(s_fallbackDesc.gameid, "pq1sci") || |