]> git.lizzy.rs Git - dragonfireclient.git/blob - builtin/game/init.lua
Create a filesystem abstraction layer for CSM and only allow accessing files that...
[dragonfireclient.git] / builtin / game / init.lua
1
2 local scriptpath = core.get_builtin_path()
3 local commonpath = scriptpath.."common"..DIR_DELIM
4 local gamepath = scriptpath.."game"..DIR_DELIM
5
6 -- Shared between builtin files, but
7 -- not exposed to outer context
8 local builtin_shared = {}
9
10 dofile(commonpath.."vector.lua")
11
12 dofile(gamepath.."constants.lua")
13 assert(loadfile(gamepath.."item.lua"))(builtin_shared)
14 dofile(gamepath.."register.lua")
15
16 if core.settings:get_bool("profiler.load") then
17         profiler = dofile(scriptpath.."profiler"..DIR_DELIM.."init.lua")
18 end
19
20 dofile(commonpath .. "after.lua")
21 dofile(gamepath.."item_entity.lua")
22 dofile(gamepath.."deprecated.lua")
23 dofile(gamepath.."misc.lua")
24 dofile(gamepath.."privileges.lua")
25 dofile(gamepath.."auth.lua")
26 dofile(commonpath .. "chatcommands.lua")
27 dofile(gamepath.."chatcommands.lua")
28 dofile(gamepath.."static_spawn.lua")
29 dofile(gamepath.."detached_inventory.lua")
30 assert(loadfile(gamepath.."falling.lua"))(builtin_shared)
31 dofile(gamepath.."features.lua")
32 dofile(gamepath.."voxelarea.lua")
33 dofile(gamepath.."forceloading.lua")
34 dofile(gamepath.."statbars.lua")
35
36 profiler = nil