mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-11-19 22:13:45 +01:00
22 lines
330 B
Lua
22 lines
330 B
Lua
|
|
wdata = {}
|
|
wdata.modname = core.get_current_modname()
|
|
wdata.modpath = core.get_modpath(wdata.modname)
|
|
|
|
function wdata.log(lvl, msg)
|
|
if not msg then
|
|
msg = lvl
|
|
lvl = nil
|
|
end
|
|
|
|
msg = "[" .. wdata.modname .. "] " .. msg
|
|
if not lvl then
|
|
core.log(msg)
|
|
else
|
|
core.log(lvl, msg)
|
|
end
|
|
end
|
|
|
|
|
|
dofile(wdata.modpath .. "/api.lua")
|