diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2020-11-06 20:17:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-06 20:17:48 +0100 |
| commit | 93e8488a63ea3d63a67df739bbf4ed0ce67e372b (patch) | |
| tree | 7cc1e54e23adb72e808ace1daa5a134733e35b22 | |
| parent | b909677c3fc6a7b7a1993d341a2bd420715e292a (diff) | |
| parent | ffeae1a632e105244918dcdf9c47abddeeb1f3fa (diff) | |
Merge pull request #1283 from Holt59/iplugingame-detectgame
Add IPluginGame::detectGame()
| -rw-r--r-- | src/plugincontainer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index a571a0aa..908677c2 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
@@ -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;
}
|
