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
This commit is contained in:
atikiNBTW
2024-07-29 19:56:50 +05:00
committed by GitHub
parent 23a8f06594
commit 3a1afb53fd

View File

@@ -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);