2014-04-28 01:55:49 +04:00
|
|
|
|
2017-06-30 21:14:39 +03:00
|
|
|
local scriptpath = core.get_builtin_path()
|
2014-04-28 01:55:49 +04:00
|
|
|
local commonpath = scriptpath.."common"..DIR_DELIM
|
|
|
|
local gamepath = scriptpath.."game"..DIR_DELIM
|
|
|
|
|
2016-11-16 12:17:46 +03:00
|
|
|
-- Shared between builtin files, but
|
|
|
|
-- not exposed to outer context
|
|
|
|
local builtin_shared = {}
|
|
|
|
|
2014-04-28 01:55:49 +04:00
|
|
|
dofile(commonpath.."vector.lua")
|
|
|
|
|
2015-10-30 09:48:37 +03:00
|
|
|
dofile(gamepath.."constants.lua")
|
2016-11-16 12:17:46 +03:00
|
|
|
assert(loadfile(gamepath.."item.lua"))(builtin_shared)
|
2014-04-28 01:55:49 +04:00
|
|
|
dofile(gamepath.."register.lua")
|
2014-08-13 01:07:27 +04:00
|
|
|
|
2014-12-12 22:49:19 +03:00
|
|
|
if core.settings:get_bool("profiler.load") then
|
2016-07-12 22:51:10 +03:00
|
|
|
profiler = dofile(scriptpath.."profiler"..DIR_DELIM.."init.lua")
|
2014-08-13 01:07:27 +04:00
|
|
|
end
|
|
|
|
|
2017-01-22 13:17:41 +03:00
|
|
|
dofile(commonpath .. "after.lua")
|
2014-04-28 01:55:49 +04:00
|
|
|
dofile(gamepath.."item_entity.lua")
|
|
|
|
dofile(gamepath.."deprecated.lua")
|
|
|
|
dofile(gamepath.."misc.lua")
|
|
|
|
dofile(gamepath.."privileges.lua")
|
|
|
|
dofile(gamepath.."auth.lua")
|
2017-01-22 11:05:09 +03:00
|
|
|
dofile(commonpath .. "chatcommands.lua")
|
2014-04-28 01:55:49 +04:00
|
|
|
dofile(gamepath.."chatcommands.lua")
|
|
|
|
dofile(gamepath.."static_spawn.lua")
|
|
|
|
dofile(gamepath.."detached_inventory.lua")
|
2016-11-16 12:17:46 +03:00
|
|
|
assert(loadfile(gamepath.."falling.lua"))(builtin_shared)
|
2014-04-28 01:55:49 +04:00
|
|
|
dofile(gamepath.."features.lua")
|
|
|
|
dofile(gamepath.."voxelarea.lua")
|
|
|
|
dofile(gamepath.."forceloading.lua")
|
|
|
|
dofile(gamepath.."statbars.lua")
|
2016-07-12 22:51:10 +03:00
|
|
|
|
|
|
|
profiler = nil
|