mod-wdata/init.lua

22 lines
344 B
Lua
Raw Normal View History

2021-05-28 07:12:23 +02:00
wconfig = {}
wconfig.modname = core.get_current_modname()
wconfig.modpath = core.get_modpath(wconfig.modname)
2021-05-28 07:56:49 +02:00
function wconfig.log(lvl, msg)
2021-05-28 07:12:23 +02:00
if not msg then
msg = lvl
lvl = nil
end
msg = "[" .. wconfig.modname .. "] " .. msg
if not lvl then
core.log(msg)
else
core.log(lvl, msg)
end
end
dofile(wconfig.modpath .. "/api.lua")