2023-01-28 12:04:14 +01:00
|
|
|
local MP = minetest.get_modpath("otp")
|
|
|
|
|
2023-01-29 13:49:00 +01:00
|
|
|
-- sanity checks
|
|
|
|
assert(type(minetest.encode_png) == "function")
|
|
|
|
|
2023-01-28 12:04:14 +01:00
|
|
|
otp = {
|
|
|
|
-- mod storage
|
|
|
|
storage = minetest.get_mod_storage(),
|
|
|
|
|
|
|
|
-- baseXX functions
|
2023-01-28 17:49:12 +01:00
|
|
|
basexx = loadfile(MP.."/basexx.lua")(),
|
|
|
|
|
|
|
|
-- qr code
|
|
|
|
qrcode = loadfile(MP.."/qrencode.lua")().qrcode
|
2023-01-28 12:04:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dofile(MP.."/functions.lua")
|
2023-01-28 20:30:44 +01:00
|
|
|
dofile(MP.."/onboard.lua")
|
2023-01-29 13:16:32 +01:00
|
|
|
dofile(MP.."/join.lua")
|
2023-01-29 12:13:50 +01:00
|
|
|
dofile(MP.."/privs.lua")
|
2023-02-02 14:25:16 +01:00
|
|
|
dofile(MP.."/priv_revoke.lua")
|
2023-01-28 17:25:39 +01:00
|
|
|
|
|
|
|
if minetest.get_modpath("mtt") and mtt.enabled then
|
|
|
|
dofile(MP.."/functions.spec.lua")
|
2023-01-28 19:55:46 +01:00
|
|
|
end
|