From 1074825ca6736aef80c38d7b4c514148bb61ee2b Mon Sep 17 00:00:00 2001 From: Mikaël Capelle Date: Fri, 6 Nov 2020 18:56:00 +0100 Subject: Replace IPlugin::registered() by IPluginGame::detectGame(). --- src/plugincontainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index a571a0aa..d282891e 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -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 @@ -267,6 +265,7 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName) } { // game plugin IPluginGame *game = qobject_cast(plugin); + game->detectGame(); if (initPlugin(game)) { bf::at_key(m_Plugins).push_back(game); registerGame(game); -- cgit v1.3.1 From ffeae1a632e105244918dcdf9c47abddeeb1f3fa Mon Sep 17 00:00:00 2001 From: Mikaël Capelle Date: Fri, 6 Nov 2020 20:10:52 +0100 Subject: Call detectGame() after checking for conversion. --- src/plugincontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index d282891e..908677c2 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -265,9 +265,9 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName) } { // game plugin IPluginGame *game = qobject_cast(plugin); - game->detectGame(); if (initPlugin(game)) { bf::at_key(m_Plugins).push_back(game); + game->detectGame(); registerGame(game); return true; } -- cgit v1.3.1