diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-11-10 21:01:57 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 21:01:57 -0500 |
| commit | e1dceec67a53f5332b2f92ac2901309f0c0ed882 (patch) | |
| tree | e5ca763cc6d16f928c145d43458a4918807e85e4 /src/plugincontainer.cpp | |
| parent | 9c21d1e4f6a42043bc4cf86f1235750ee8ce6f64 (diff) | |
| parent | ca54d5c55b1a17d9149110bbda2371c5a2e24f46 (diff) | |
Merge pull request #1290 from isanae/master
Local saves don't work
Diffstat (limited to 'src/plugincontainer.cpp')
| -rw-r--r-- | src/plugincontainer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<IPluginGame*>(plugin);
+
+ if (game) {
+ game->detectGame();
+ }
+
if (initPlugin(game)) {
bf::at_key<IPluginGame>(m_Plugins).push_back(game);
- game->detectGame();
registerGame(game);
return true;
}
|
