diff options
author | Max Horn | 2011-06-14 17:26:55 +0200 |
---|---|---|
committer | Max Horn | 2011-06-14 18:52:10 +0200 |
commit | 068620479202f93c3057bc24f33a8c6f3da5a68d (patch) | |
tree | 425967147d7cb86bf6461b10ee7422a11f048afd /engines | |
parent | 49a1ea17892eaeca56fb7913a14f66dca652831d (diff) | |
download | scummvm-rg350-068620479202f93c3057bc24f33a8c6f3da5a68d.tar.gz scummvm-rg350-068620479202f93c3057bc24f33a8c6f3da5a68d.tar.bz2 scummvm-rg350-068620479202f93c3057bc24f33a8c6f3da5a68d.zip |
DETECTOR: cleanup
Diffstat (limited to 'engines')
-rw-r--r-- | engines/advancedDetector.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/advancedDetector.cpp b/engines/advancedDetector.cpp index 5d13fb313a..cd94ce48e4 100644 --- a/engines/advancedDetector.cpp +++ b/engines/advancedDetector.cpp @@ -106,7 +106,7 @@ void AdvancedMetaEngine::updateGameDescriptor(GameDescriptor &desc, const ADGame } bool cleanupPirated(ADGameDescList &matched) { - // OKay, now let's sense presense of pirated games + // OKay, now let's sense presence of pirated games if (!matched.empty()) { for (uint j = 0; j < matched.size();) { if (matched[j]->flags & ADGF_PIRATED) @@ -117,9 +117,7 @@ bool cleanupPirated(ADGameDescList &matched) { // We ruled out all variants and now have nothing if (matched.empty()) { - warning("Illegitimate game copy detected. We give no support in such cases %d", matched.size()); - return true; } } @@ -132,9 +130,6 @@ GameList AdvancedMetaEngine::detectGames(const Common::FSList &fslist) const { ADGameDescList matches = detectGame(fslist, Common::UNK_LANG, Common::kPlatformUnknown, ""); GameList detectedGames; - if (cleanupPirated(matches)) - return detectedGames; - if (matches.empty()) { // Use fallback detector if there were no matches by other means const ADGameDescription *fallbackDesc = fallbackDetect(fslist); @@ -145,6 +140,7 @@ GameList AdvancedMetaEngine::detectGames(const Common::FSList &fslist) const { } } else { // Otherwise use the found matches + cleanupPirated(matches); for (uint i = 0; i < matches.size(); i++) { GameDescriptor desc(toGameDescriptor(*matches[i], _gameids)); updateGameDescriptor(desc, matches[i]); |