mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
Merge pull request #1283 from Holt59/iplugingame-detectgame
Add IPluginGame::detectGame()
This commit is contained in:
@@ -239,8 +239,6 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName)
|
||||
if (m_Organizer) {
|
||||
m_Organizer->settings().plugins().registerPlugin(pluginObj);
|
||||
}
|
||||
|
||||
pluginObj->registered();
|
||||
}
|
||||
|
||||
{ // diagnosis plugin
|
||||
@@ -269,6 +267,7 @@ bool PluginContainer::registerPlugin(QObject *plugin, const QString &fileName)
|
||||
IPluginGame *game = qobject_cast<IPluginGame*>(plugin);
|
||||
if (initPlugin(game)) {
|
||||
bf::at_key<IPluginGame>(m_Plugins).push_back(game);
|
||||
game->detectGame();
|
||||
registerGame(game);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user