plugins: fix config value usage in init
This commit is contained in:
parent
da7ea2b33d
commit
0c61a1530f
4 changed files with 19 additions and 2 deletions
|
|
@ -112,6 +112,9 @@ void CPluginSystem::unloadPlugin(const CPlugin* plugin, bool eject) {
|
|||
Debug::log(LOG, " [PluginSystem] Plugin %s unloaded.", plugin->name.c_str());
|
||||
|
||||
std::erase_if(m_vLoadedPlugins, [&](const auto& other) { return other->m_pHandle == plugin->m_pHandle; });
|
||||
|
||||
// reload config to fix some stuf like e.g. unloadedPluginVars
|
||||
g_pConfigManager->m_bForceReload = true;
|
||||
}
|
||||
|
||||
void CPluginSystem::unloadAllPlugins() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue