ENGINES: Change behaviour of EngineMan::getPlugins.

- Changed so we can get any type of plugins.
- This used to always return PLUGIN_TYPE_ENGINE.
- Because now we can differentiate between engines and metaengine, this must be changed.
- For now, return METAENGINE by default
This commit is contained in:
aryanrawlani28 2020-07-29 05:39:24 +05:30 committed by Eugene Sandulenko
parent f07bdb100e
commit 943df64b32
2 changed files with 10 additions and 4 deletions

View file

@ -652,8 +652,8 @@ DetectionResults EngineManager::detectGames(const Common::FSList &fslist) const
return DetectionResults(candidates);
}
const PluginList &EngineManager::getPlugins() const {
return PluginManager::instance().getPlugins(PLUGIN_TYPE_ENGINE);
const PluginList &EngineManager::getPlugins(const PluginType fetchPluginType) const {
return PluginManager::instance().getPlugins(fetchPluginType);
}
namespace {