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