Adds shutdown-instead-of-reboot config options

These basically exist so we can set the server up to automatically kill
itself instead of rebooting.
This commit is contained in:
Krausus
2017-02-17 01:33:06 -05:00
parent 79a4f99afc
commit a4ab111354
4 changed files with 38 additions and 6 deletions
+8
View File
@@ -189,6 +189,8 @@
var/disable_ooc_emoji = 0 // prevents people from using emoji in OOC
var/shutdown_on_reboot = 0 // Whether to shut down the world instead of rebooting it
/datum/configuration/New()
var/list/L = subtypesof(/datum/game_mode)
for(var/T in L)
@@ -585,6 +587,12 @@
if("disable_ooc_emoji")
config.disable_ooc_emoji = 1
if("shutdown_on_reboot")
config.shutdown_on_reboot = 1
if("shutdown_shell_command")
shutdown_shell_command = value
else
diary << "Unknown setting in configuration: '[name]'"