diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-06 20:10:52 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-06 20:10:52 +0100 |
| commit | ffeae1a632e105244918dcdf9c47abddeeb1f3fa (patch) | |
| tree | 7cc1e54e23adb72e808ace1daa5a134733e35b22 | |
| parent | 1074825ca6736aef80c38d7b4c514148bb61ee2b (diff) | |
Call detectGame() after checking for conversion.
| -rw-r--r-- | src/plugincontainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<IPluginGame*>(plugin);
- game->detectGame();
if (initPlugin(game)) {
bf::at_key<IPluginGame>(m_Plugins).push_back(game);
+ game->detectGame();
registerGame(game);
return true;
}
|
