| 1007 | } |
| 1008 | |
| 1009 | void ScriptEngine::ReloadPlugin(std::shared_ptr<Plugin> plugin) |
| 1010 | { |
| 1011 | StopPlugin(plugin); |
| 1012 | { |
| 1013 | ScriptExecutionInfo::PluginScope scope(_execInfo, plugin, false); |
| 1014 | plugin->Load(); |
| 1015 | LogPluginInfo(plugin, "Reloaded"); |
| 1016 | } |
| 1017 | StartPlugin(plugin); |
| 1018 | } |
| 1019 | |
| 1020 | void ScriptEngine::SetupHotReloading() |
| 1021 | { |