1
0
Fork 0

.bam/functions.lua: adding CopySettings functions

This commit is contained in:
Henrik Hautakoski 2020-01-07 06:34:40 +01:00
parent ce575cc122
commit ddd41971e1
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -23,6 +23,15 @@ function system()
return nil
end
-- Copy settings with a optional label prefix.
function CopySettings(settings, prefix)
local n = TableDeepCopy(settings)
if prefix ~= nil then
n.labelprefix = string.format("[%s] ", prefix)
end
return n
end
-- Defines a module
-- path: base path to source files.
-- src: table of source files.