mod-pbmarks/init.lua
2021-05-28 02:22:01 -07:00

28 lines
426 B
Lua

pbmarks = {}
pbmarks.modname = core.get_current_modname()
pbmarks.modpath = core.get_modpath(pbmarks.modname)
function pbmarks.log(lvl, msg)
if not msg then
msg = lvl
lvl = nil
end
msg = "[" .. pbmarks.modname .. "] " .. msg
if not lvl then
core.log(msg)
else
core.log(lvl, msg)
end
end
local scripts = {
"settings",
}
for _, scr in ipairs(scripts) do
dofile(pbmarks.modpath .. "/" .. scr .. ".lua")
end