Added configuration for disabling subsystems by name

This commit is contained in:
MINIMAN10000
2019-01-30 01:51:48 -08:00
parent ccfb659658
commit 050d520aa7
3 changed files with 15 additions and 1 deletions
+6
View File
@@ -176,6 +176,12 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
to_chat(world, "<span class='boldannounce'>Initializing subsystems...</span>")
// Config disable subsystem
for(var/select=1, select <= subsystems.len, select++)
for(var/disable=1, disable <= config.developer_disable_subsystem.len, disable++)
if(subsystems[select].name == config.developer_disable_subsystem[disable])
subsystems -= subsystems[select]
// Sort subsystems by init_order, so they initialize in the correct order.
sortTim(subsystems, /proc/cmp_subsystem_init)