summaryrefslogtreecommitdiff
path: root/src/plugincontainer.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-11-06 20:10:52 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2020-11-06 20:10:52 +0100
commitffeae1a632e105244918dcdf9c47abddeeb1f3fa (patch)
tree7cc1e54e23adb72e808ace1daa5a134733e35b22 /src/plugincontainer.cpp
parent1074825ca6736aef80c38d7b4c514148bb61ee2b (diff)
Call detectGame() after checking for conversion.
Diffstat (limited to 'src/plugincontainer.cpp')
-rw-r--r--src/plugincontainer.cpp2
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;
}