MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ReloadPlugin

Method ReloadPlugin

src/openrct2/scripting/ScriptEngine.cpp:1009–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009void 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
1020void ScriptEngine::SetupHotReloading()
1021{

Callers

nothing calls this directly

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected