BASE: PLUGINS: Remove comments referring to old game detection

This commit is contained in:
aryanrawlani28 2020-08-08 04:38:28 +05:30 committed by Eugene Sandulenko
parent 92839dce1c
commit 84ddd3ac88

View File

@ -623,28 +623,6 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist) const
PluginList plugins;
PluginList::const_iterator iter;
/**
* Reference to old detection of games.
* PLUGINS TODO: Remove at end.
PluginMan.loadFirstPlugin();
do {
plugins = getPlugins();
// 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) {
const MetaEngine &metaEngine = (*iter)->get<MetaEngine>();
DetectedGames engineCandidates = metaEngine.detectGames(fslist);
for (uint i = 0; i < engineCandidates.size(); i++) {
engineCandidates[i].path = fslist.begin()->getParent().getPath();
engineCandidates[i].shortPath = fslist.begin()->getParent().getDisplayName();
candidates.push_back(engineCandidates[i]);
}
}
} while (PluginMan.loadNextPlugin());
*/
// MetaEngines are always loaded into memory, so, get them and
// run detection for all of them.
plugins = getPlugins(PLUGIN_TYPE_METAENGINE);