diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-12 22:08:55 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-11-12 22:08:55 +0100 |
| commit | 0d6bdf5721f1c968444cd55fbd8a89beb8de7980 (patch) | |
| tree | 0e994ac0296d628d0174c98d263e6bd61c0e92ad /src/plugincontainer.h | |
| parent | a4acfc1f992eb5135c9ae6542ae5ffa8b09a2c2d (diff) | |
Do not initialize proxied plugins twice.
Diffstat (limited to 'src/plugincontainer.h')
| -rw-r--r-- | src/plugincontainer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugincontainer.h b/src/plugincontainer.h index 54da37d0..e9f0f453 100644 --- a/src/plugincontainer.h +++ b/src/plugincontainer.h @@ -376,10 +376,12 @@ private: *
* @param plugin The plugin to initialize.
* @param proxy The proxy that created this plugin (can be null).
+ * @param skipInit If true, IPlugin::init() will not be called, regardless
+ * of the state of the container.
*
* @return true if the plugin was initialized correctly, false otherwise.
*/
- bool initPlugin(MOBase::IPlugin *plugin, MOBase::IPluginProxy* proxy);
+ bool initPlugin(MOBase::IPlugin *plugin, MOBase::IPluginProxy* proxy, bool skipInit);
void registerGame(MOBase::IPluginGame *game);
|
