summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authoratikiNBTW <74009330+atikiNBTW@users.noreply.github.com>2024-07-29 19:56:50 +0500
committerGitHub <noreply@github.com>2024-07-29 16:56:50 +0200
commit3a1afb53fdc75d6bfb434fb5ff29ab43ce6b040a (patch)
treeb1c53c50cbf6fa3ad5d046f2d5bfd33896c28fa9 /src/plugins
parent23a8f06594fd75580ddb6115c78812d3e3d6c57f (diff)
pluginapi: Add force reload of config at the end of plugin initialization (#7099)
* Add force reload of config at the end of plugin load * Remove unnecessary include
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/PluginSystem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/PluginSystem.cpp b/src/plugins/PluginSystem.cpp
index 46f50469..122faafd 100644
--- a/src/plugins/PluginSystem.cpp
+++ b/src/plugins/PluginSystem.cpp
@@ -80,6 +80,8 @@ CPlugin* CPluginSystem::loadPlugin(const std::string& path) {
PLUGIN->version = PLUGINDATA.version;
PLUGIN->name = PLUGINDATA.name;
+ g_pConfigManager->m_bForceReload = true;
+
Debug::log(LOG, " [PluginSystem] Plugin {} loaded. Handle: {:x}, path: \"{}\", author: \"{}\", description: \"{}\", version: \"{}\"", PLUGINDATA.name, (uintptr_t)MODULE, path,
PLUGINDATA.author, PLUGINDATA.description, PLUGINDATA.version);