From be2456e815e078e54131b53afc3f11eb3ec7e4cc Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Tue, 10 Nov 2020 20:59:47 -0500 Subject: detectGame() must be called before init() --- src/plugincontainer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/plugincontainer.cpp') diff --git a/src/plugincontainer.cpp b/src/plugincontainer.cpp index dd4ccbb1..5992f28d 100644 --- a/src/plugincontainer.cpp +++ b/src/plugincontainer.cpp @@ -265,9 +265,13 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName) } { // game plugin IPluginGame *game = qobject_cast(plugin); + + if (game) { + game->detectGame(); + } + if (initPlugin(game)) { bf::at_key(m_Plugins).push_back(game); - game->detectGame(); registerGame(game); return true; } -- cgit v1.3.1