Skip to content

Commit

Permalink
Add shutdown on reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Oct 22, 2023
1 parent 9a5f349 commit d7eba18
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/controllers/configuration.dm
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@

var/static/deletion_starts_paused = TRUE

// [SIERRA-ADD]
var/static/shutdown_on_reboot = FALSE
// [/SIERRA-ADD]


/datum/configuration/New()
load_config()
Expand Down Expand Up @@ -845,6 +849,10 @@
warn_if_staff_same_ip = TRUE
if ("deletion_starts_paused")
deletion_starts_paused = TRUE
// [SIERRA-ADD]
if ("shutdown_on_reboot")
shutdown_on_reboot = TRUE
// [/SIERRA-ADD]
// [SIERRA-ADD] - EX666_ECOSYSTEM
if ("overflow_server_url")
overflow_server_url = value
Expand Down
6 changes: 6 additions & 0 deletions code/game/world.dm
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,12 @@ GLOBAL_VAR_INIT(world_topic_last, world.timeofday)
to_world(SPAN_DANGER("World reboot waiting for external scripts. Please be patient."))
return

// [SIERRA-ADD]
if(config.shutdown_on_reboot)
sleep(0)
del(world)
return
// [/SIERRA-ADD]
..(reason)


Expand Down

0 comments on commit d7eba18

Please sign in to comment.