Implement additional plugin hook script.onUpdateConfig

Implements #4451
This commit is contained in:
Simone Mainardi 2020-09-20 13:19:36 +02:00
parent 402e1113fb
commit 304c5404f2
4 changed files with 70 additions and 0 deletions

View file

@ -82,6 +82,14 @@ local script = {
-- #################################################################
-- @brief See host/example.lua
function script.onUpdateConfig(confid, config)
print("on update:" .. script.key.. " confid: "..confid.."\n")
tprint(config)
end
-- #################################################################
-- @brief Called when the script is going to be loaded.
-- @return true if the script should be loaded, false otherwise
-- @note Can be used to init some script global state or to skip the script