parent
bef1321f00
commit
83a4c61048
2 changed files with 6 additions and 1 deletions
|
|
@ -196,6 +196,11 @@ void CPluginSystem::unloadAllPlugins() {
|
|||
}
|
||||
|
||||
void CPluginSystem::updateConfigPlugins(const std::vector<std::string>& plugins, bool& changed) {
|
||||
if (m_lastConfigPlugins == plugins)
|
||||
return;
|
||||
|
||||
m_lastConfigPlugins = plugins;
|
||||
|
||||
// unload all plugins that are no longer present
|
||||
for (auto const& p : m_loadedPlugins | std::views::reverse) {
|
||||
if (!p->m_loadedWithConfig || std::ranges::find(plugins, p->m_path) != plugins.end())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue