start
This commit is contained in:
commit
780d3f2d3d
83 changed files with 1805 additions and 0 deletions
31
me.lua
Normal file
31
me.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
local me = {}
|
||||
|
||||
me.name = "bztin"
|
||||
me.list = {}
|
||||
|
||||
function me.use_cable()
|
||||
return me.get_setting("bztin-more-intermediates") == "cable"
|
||||
end
|
||||
|
||||
function me.get_setting(name)
|
||||
if settings.startup[name] == nil then
|
||||
return nil
|
||||
end
|
||||
return settings.startup[name].value
|
||||
end
|
||||
|
||||
me.bypass = {}
|
||||
if me.get_setting(me.name.."-recipe-bypass") then
|
||||
for recipe in string.gmatch(me.get_setting(me.name.."-recipe-bypass"), '[^",%s]+') do
|
||||
me.bypass[recipe] = true
|
||||
end
|
||||
end
|
||||
|
||||
function me.add_modified(name)
|
||||
if me.get_setting(me.name.."-list") then
|
||||
table.insert(me.list, name)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
return me
|
||||
Loading…
Add table
Add a link
Reference in a new issue