2014-04-27 23:55:49 +02:00
|
|
|
|
2017-06-30 20:14:39 +02:00
|
|
|
local scriptpath = core.get_builtin_path()
|
2019-08-08 18:04:46 +02:00
|
|
|
local commonpath = scriptpath .. "common" .. DIR_DELIM
|
|
|
|
local gamepath = scriptpath .. "game".. DIR_DELIM
|
2014-04-27 23:55:49 +02:00
|
|
|
|
2016-11-16 10:17:46 +01:00
|
|
|
-- Shared between builtin files, but
|
|
|
|
-- not exposed to outer context
|
|
|
|
local builtin_shared = {}
|
|
|
|
|
2019-08-08 18:04:46 +02:00
|
|
|
dofile(gamepath .. "constants.lua")
|
2022-09-18 17:46:48 +02:00
|
|
|
assert(loadfile(commonpath .. "item_s.lua"))(builtin_shared)
|
2019-08-08 18:04:46 +02:00
|
|
|
assert(loadfile(gamepath .. "item.lua"))(builtin_shared)
|
2022-12-30 14:35:57 +01:00
|
|
|
assert(loadfile(commonpath .. "register.lua"))(builtin_shared)
|
|
|
|
assert(loadfile(gamepath .. "register.lua"))(builtin_shared)
|
2014-08-12 23:07:27 +02:00
|
|
|
|
2014-12-12 20:49:19 +01:00
|
|
|
if core.settings:get_bool("profiler.load") then
|
2019-08-08 18:04:46 +02:00
|
|
|
profiler = dofile(scriptpath .. "profiler" .. DIR_DELIM .. "init.lua")
|
2014-08-12 23:07:27 +02:00
|
|
|
end
|
|
|
|
|
2017-01-22 11:17:41 +01:00
|
|
|
dofile(commonpath .. "after.lua")
|
2024-03-06 18:04:49 +01:00
|
|
|
dofile(commonpath .. "metatable.lua")
|
2022-07-23 22:27:07 +02:00
|
|
|
dofile(commonpath .. "mod_storage.lua")
|
2019-08-08 18:04:46 +02:00
|
|
|
dofile(gamepath .. "item_entity.lua")
|
|
|
|
dofile(gamepath .. "deprecated.lua")
|
2022-04-09 13:53:32 +02:00
|
|
|
dofile(gamepath .. "misc_s.lua")
|
2019-08-08 18:04:46 +02:00
|
|
|
dofile(gamepath .. "misc.lua")
|
|
|
|
dofile(gamepath .. "privileges.lua")
|
|
|
|
dofile(gamepath .. "auth.lua")
|
2017-01-22 09:05:09 +01:00
|
|
|
dofile(commonpath .. "chatcommands.lua")
|
2019-08-08 18:04:46 +02:00
|
|
|
dofile(gamepath .. "chat.lua")
|
2019-07-20 18:22:32 +02:00
|
|
|
dofile(commonpath .. "information_formspecs.lua")
|
2019-08-08 18:04:46 +02:00
|
|
|
dofile(gamepath .. "static_spawn.lua")
|
|
|
|
dofile(gamepath .. "detached_inventory.lua")
|
|
|
|
assert(loadfile(gamepath .. "falling.lua"))(builtin_shared)
|
|
|
|
dofile(gamepath .. "features.lua")
|
|
|
|
dofile(gamepath .. "voxelarea.lua")
|
|
|
|
dofile(gamepath .. "forceloading.lua")
|
2024-04-10 11:43:15 +02:00
|
|
|
dofile(gamepath .. "hud.lua")
|
2019-07-16 19:20:06 +02:00
|
|
|
dofile(gamepath .. "knockback.lua")
|
2022-05-02 20:55:04 +02:00
|
|
|
dofile(gamepath .. "async.lua")
|
2024-09-24 22:37:44 +02:00
|
|
|
dofile(gamepath .. "death_screen.lua")
|
2016-07-12 21:51:10 +02:00
|
|
|
|
2022-09-18 17:46:48 +02:00
|
|
|
core.after(0, builtin_shared.cache_content_ids)
|
|
|
|
|
2016-07-12 21:51:10 +02:00
|
|
|
profiler = nil
|