Adds a config option that disables some time consuming bootup steps that aren't generally required for debugging.
This commit is contained in:
Lohikar
2017-06-22 05:15:20 -05:00
committed by skull132
parent 8445d042dc
commit bcccd88fd4
5 changed files with 26 additions and 0 deletions

View File

@@ -245,6 +245,7 @@ var/list/gamemode_cache = list()
// Master Controller settings.
var/mc_init_tick_limit = TICK_LIMIT_MC_INIT_DEFAULT
var/fastboot = FALSE // If true, take some shortcuts during boot to speed it up for testing. Probably should not be used on production servers.
//UDP GELF Logging
var/log_gelf_enabled = 0
@@ -285,6 +286,11 @@ var/list/gamemode_cache = list()
src.votable_modes += M.config_tag
src.votable_modes += "secret"
#ifdef UNIT_TEST
fastboot = TRUE
world.log << "UNIT_TEST present. Forcing fastboot on."
#endif
/datum/configuration/proc/load(filename, type = "config") //the type can also be game_options, in which case it uses a different switch. not making it separate to not copypaste code - Urist
var/list/Lines = file2list(filename)
@@ -819,6 +825,9 @@ var/list/gamemode_cache = list()
if("access_warn_vms")
access_warn_vms = text2num(value)
if("fastboot")
fastboot = TRUE
else
log_misc("Unknown setting in configuration: '[name]'")