rename init to reload

develop
myk002 2022-12-06 16:45:17 -08:00 committed by Myk Taylor
parent 107be0a4a6
commit 0d4d10de08
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

@ -39,7 +39,7 @@ local function process_script(env_name, env)
enabled_map[env_name] = fn
end
function init()
function reload()
enabled_map = utils.OrderedTable()
foreach_module_script(process_script)
end

@ -25,7 +25,7 @@ DFhackCExport command_result plugin_onstatechange(color_ostream &out, state_chan
auto L = Lua::Core::State;
Lua::StackUnwinder top(L);
Lua::CallLuaModuleFunction(out, L, "plugins.script-manager", "init");
Lua::CallLuaModuleFunction(out, L, "plugins.script-manager", "reload");
return CR_OK;
}