-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;
- }
-
-plugin->Stop();
-
-return 0;
-}
-//-----------------------------------------------------------------------------
-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();