-if (!isPluginLoaded)
- {
- errorStr = "Plugin '" + pluginFileName + "' was not loaded yet!";
- printfd(__FILE__, "PLUGIN_LOADER::Stop() - %s\n", errorStr.c_str());
- return -1;
- }
-
-if (!plugin)
- {
- errorStr = "Plugin '" + pluginFileName + "' was not created!";
- printfd(__FILE__, "PLUGIN_LOADER::Stop() - %s\n", errorStr.c_str());
- return -1;
- }
-
-return plugin->Stop();
-}
-//-----------------------------------------------------------------------------
-int PLUGIN_RUNNER::Reload()
-{
-if (!isPluginLoaded)
- {
- errorStr = "Plugin '" + pluginFileName + "' was not loaded yet!";
- printfd(__FILE__, "PLUGIN_LOADER::Reload() - %s\n", errorStr.c_str());
- return -1;
- }
-
-if (!plugin)
- {
- errorStr = "Plugin '" + pluginFileName + "' was not created!";
- printfd(__FILE__, "PLUGIN_LOADER::Reload() - %s\n", errorStr.c_str());
- return -1;
- }
-
-int res = plugin->Reload();
-errorStr = plugin->GetStrError();
-return res;