123456789101112131415161718192021222324252627 |
- xpfw = {}
- xpfw.path = minetest.get_modpath("xpfw")
- xpfw.modname=minetest.get_current_modname()
- xpfw.mod_storage=minetest.get_mod_storage()
- xpfw.store_table={}--xpfw.mod_storage:to_table()
- xpfw.attributes={}
- local S = dofile(xpfw.path .. "/intllib.lua")
- xpfw.intllib = S
- --print(dump2(xpfw.mod_store))
- minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
- -- Load files
- -- import settingtypes.txt
- basic_functions.import_settingtype(xpfw.path .. "/settingtypes.txt")
- dofile(xpfw.path .. "/api.lua") -- API
- dofile(xpfw.path .. "/register.lua") -- Registering functions
- dofile(xpfw.path .. "/config.lua") -- API
- dofile(xpfw.path .. "/chat_commands.lua")
- if cmi ~= nil then
- -- dofile(xpfw.path .. "/cmi.lua")
- end
- minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")
|