Files
Paradise/code/__DEFINES/_init.dm
DamianX 10282d3935 Initialize auxtools before world/New() (#17713)
* Initialize auxtools before world/New()

* refactored

* This doesn't need to be changed anymore
2022-05-01 17:58:44 +01:00

13 lines
556 B
Plaintext

/datum/super_early_init
/datum/super_early_init/New()
// This exists so that world.Profile() is THE FIRST PROC TO RUN in the init sequence.
// This allows us to get the real details of everything lagging at server start.
world.Profile(PROFILE_START)
// After that, the debugger is initialized.
// Doing it this early makes it possible to set breakpoints in the New()
// of things assigned to global variables or objects included in a compiled map file.
world.enable_auxtools_debugger()
GLOBAL_REAL(super_early_init, /datum/super_early_init) = new