diff --git a/base/plugins.cpp b/base/plugins.cpp index 3e47a537176..37daf1e7660 100644 --- a/base/plugins.cpp +++ b/base/plugins.cpp @@ -32,6 +32,8 @@ #include "base/detection/detection.h" +#include "engines/advancedDetector.h" + // Plugin versioning int pluginTypeVersions[PLUGIN_TYPE_MAX] = { @@ -722,6 +724,9 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist) const // run detection for all of them. plugins = getPlugins(PLUGIN_TYPE_ENGINE_DETECTION); + // Clear md5 cache before each detection starts, just in case. + MD5Man.clear(); + // Iterate over all known games and for each check if it might be // the game in the presented directory. for (iter = plugins.begin(); iter != plugins.end(); ++iter) {