]> git.lizzy.rs Git - dragonfireclient.git/blob - builtin/game/init.lua
Builtin/profiler: Replace game profiler (#4245)
[dragonfireclient.git] / builtin / game / init.lua
1
2 local scriptpath = core.get_builtin_path()..DIR_DELIM
3 local commonpath = scriptpath.."common"..DIR_DELIM
4 local gamepath = scriptpath.."game"..DIR_DELIM
5
6 dofile(commonpath.."vector.lua")
7
8 dofile(gamepath.."constants.lua")
9 dofile(gamepath.."item.lua")
10 dofile(gamepath.."register.lua")
11
12 if core.setting_getbool("profiler.load") then
13         profiler = dofile(scriptpath.."profiler"..DIR_DELIM.."init.lua")
14 end
15
16 dofile(gamepath.."item_entity.lua")
17 dofile(gamepath.."deprecated.lua")
18 dofile(gamepath.."misc.lua")
19 dofile(gamepath.."privileges.lua")
20 dofile(gamepath.."auth.lua")
21 dofile(gamepath.."chatcommands.lua")
22 dofile(gamepath.."static_spawn.lua")
23 dofile(gamepath.."detached_inventory.lua")
24 dofile(gamepath.."falling.lua")
25 dofile(gamepath.."features.lua")
26 dofile(gamepath.."voxelarea.lua")
27 dofile(gamepath.."forceloading.lua")
28 dofile(gamepath.."statbars.lua")
29
30 profiler = nil