2018-12-03 11:42:25 -08:00
|
|
|
|
|
|
|
xpfw = {}
|
|
|
|
xpfw.path = minetest.get_modpath("xpfw")
|
|
|
|
xpfw.modname=minetest.get_current_modname()
|
2018-12-04 20:36:23 -08:00
|
|
|
xpfw.mod_storage=minetest.get_mod_storage()
|
2018-12-05 20:11:44 -08:00
|
|
|
xpfw.store_table={}--xpfw.mod_storage:to_table()
|
|
|
|
xpfw.attributes={}
|
2019-02-14 04:58:13 -08:00
|
|
|
local S = dofile(xpfw.path .. "/intllib.lua")
|
|
|
|
xpfw.intllib = S
|
2018-12-03 11:42:25 -08:00
|
|
|
|
2018-12-22 23:46:57 -08:00
|
|
|
--print(dump2(xpfw.mod_store))
|
2018-12-03 11:42:25 -08:00
|
|
|
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- start loading from "..minetest.get_modpath(minetest.get_current_modname()))
|
|
|
|
-- Load files
|
|
|
|
|
2018-12-23 01:14:39 -08:00
|
|
|
-- import settingtypes.txt
|
|
|
|
basic_functions.import_settingtype(xpfw.path .. "/settingtypes.txt")
|
2018-12-03 11:42:25 -08:00
|
|
|
|
2018-12-04 19:04:57 -08:00
|
|
|
dofile(xpfw.path .. "/api.lua") -- API
|
2019-01-02 06:32:06 -08:00
|
|
|
dofile(xpfw.path .. "/register.lua") -- Registering functions
|
2018-12-05 09:40:56 -08:00
|
|
|
dofile(xpfw.path .. "/config.lua") -- API
|
2018-12-06 05:04:47 -08:00
|
|
|
dofile(xpfw.path .. "/chat_commands.lua")
|
2019-02-07 02:40:01 -08:00
|
|
|
if cmi ~= nil then
|
2019-02-08 05:07:14 -08:00
|
|
|
-- dofile(xpfw.path .. "/cmi.lua")
|
2019-02-07 02:40:01 -08:00
|
|
|
end
|
2018-12-03 11:42:25 -08:00
|
|
|
|
|
|
|
minetest.log("action", "[MOD]"..minetest.get_current_modname().." -- loaded ")
|