Revert "Added a configuration option for disabling subsystems by name"

This commit is contained in:
Alffd
2019-02-09 00:17:40 -05:00
committed by GitHub
parent b61041692a
commit 42832fb8ee
3 changed files with 1 additions and 15 deletions
-3
View File
@@ -209,7 +209,6 @@
// Developer
var/developer_express_start = 0
var/developer_disable_subsystem[]
/datum/configuration/New()
for(var/T in subtypesof(/datum/game_mode))
@@ -637,8 +636,6 @@
config.disable_high_pop_mc_mode_amount = text2num(value)
if("developer_express_start")
config.developer_express_start = 1
if("developer_disable_subsystem")
config.developer_disable_subsystem = splittext(value, ",")
else
log_config("Unknown setting in configuration: '[name]'")
-6
View File
@@ -176,12 +176,6 @@ 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)