X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8c7e6453aff765245cc5c28f37543f13d92dbe74..8f46a826a07310dbd76e4b3a15f63ae055272542:/projects/stargazer/plugin_mgr.cpp?ds=inline diff --git a/projects/stargazer/plugin_mgr.cpp b/projects/stargazer/plugin_mgr.cpp index 10911b97..cc1adec7 100644 --- a/projects/stargazer/plugin_mgr.cpp +++ b/projects/stargazer/plugin_mgr.cpp @@ -15,7 +15,7 @@ */ /* - * Author : Maxim Mamontov + * Author : Maksym Mamontov */ #include "plugin_mgr.h" @@ -59,8 +59,8 @@ PluginManager::PluginManager(const SETTINGS_IMPL& settings, const std::vector & modSettings(settings.GetModulesSettings()); for (size_t i = 0; i < modSettings.size(); i++) { - std::string modulePath = basePath + "/mod_" + modSettings[i].moduleName + ".so"; std::string moduleName = modSettings[i].moduleName; + std::string modulePath = basePath + "/mod_" + moduleName + ".so"; printfd(__FILE__, "Module: %s\n", modulePath.c_str()); try { @@ -120,6 +120,7 @@ void PluginManager::reload(const SETTINGS_IMPL& settings) printfd(__FILE__, "Error reloading module '%s': '%s'\n", plugin.GetVersion().c_str(), plugin.GetStrError().c_str()); } + break; } } }