| 967 | } |
| 968 | |
| 969 | void ScriptEngine::StartPlugin(std::shared_ptr<Plugin> plugin) |
| 970 | { |
| 971 | if (!plugin->HasStarted() && ShouldStartPlugin(plugin)) |
| 972 | { |
| 973 | ScriptExecutionInfo::PluginScope scope(_execInfo, plugin, false); |
| 974 | try |
| 975 | { |
| 976 | LogPluginInfo(plugin, "Started"); |
| 977 | plugin->Start(); |
| 978 | } |
| 979 | catch (const std::exception& e) |
| 980 | { |
| 981 | _console.WriteLineError(e.what()); |
| 982 | } |
| 983 | } |
| 984 | } |
| 985 | |
| 986 | void ScriptEngine::StopPlugin(std::shared_ptr<Plugin> plugin, bool unregistering) |
| 987 | { |
nothing calls this directly
no test coverage detected