mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-08-19 21:04:17 +02:00
22 lines
344 B
Lua
22 lines
344 B
Lua
|
|
wconfig = {}
|
|
wconfig.modname = core.get_current_modname()
|
|
wconfig.modpath = core.get_modpath(wconfig.modname)
|
|
|
|
function wconfig.log(lvl, msg)
|
|
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")
|