mirror of
https://github.com/AntumMT/mod-wdata.git
synced 2024-11-19 22:13:45 +01:00
19 lines
295 B
Lua
19 lines
295 B
Lua
|
|
wconfig = {}
|
|
wconfig.modname = core.get_current_modname()
|
|
wconfig.modpath = core.get_modpath(wconfig.modname)
|
|
|
|
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
|