.bam/functions.lua: adding CopySettings functions
This commit is contained in:
parent
ce575cc122
commit
ddd41971e1
1 changed files with 9 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue