Merge pull request #1283 from Holt59/iplugingame-detectgame

Add IPluginGame::detectGame()
This commit is contained in:
Mikaël Capelle
2020-11-06 20:17:48 +01:00
committed by GitHub
+1 -2
View File
@@ -239,8 +239,6 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName)
if (m_Organizer) {
m_Organizer->settings().plugins().registerPlugin(pluginObj);
}
pluginObj->registered();
}
{ // diagnosis plugin
@@ -269,6 +267,7 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName)
IPluginGame *game = qobject_cast<IPluginGame*>(plugin);
if (initPlugin(game)) {
bf::at_key<IPluginGame>(m_Plugins).push_back(game);
game->detectGame();
registerGame(game);
return true;
}