[READY] Server dev toasts (#20147)

* Server init toast

* New libraries

* GC ref notification

* Update code/_compile_options.dm

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

---------

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
AffectedArc07
2023-02-04 21:11:00 +00:00
committed by GitHub
parent d32cbb7638
commit 82ebc13847
9 changed files with 18 additions and 1 deletions
@@ -28,6 +28,8 @@
var/override_map = null
/// Assoc list of region names and their server IPs. Used for geo-routing.
var/list/region_map = list()
/// Send a system toast on init completion?
var/toast_on_init_complete = FALSE
/datum/configuration_section/system_configuration/load_data(list/data)
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
@@ -35,6 +37,7 @@
CONFIG_LOAD_BOOL(is_production, data["is_production"])
CONFIG_LOAD_BOOL(external_tos_handler, data["external_tos_handler"])
CONFIG_LOAD_BOOL(enable_multi_instance_support, data["enable_multi_instance_support"])
CONFIG_LOAD_BOOL(toast_on_init_complete, data["toast_on_init_complete"])
CONFIG_LOAD_STR(topic_key, data["communications_password"])
CONFIG_LOAD_STR(shutdown_shell_command, data["shutdown_shell_command"])
+3
View File
@@ -228,6 +228,9 @@ GLOBAL_REAL(Master, /datum/controller/master) = new
log_startup_progress("Initializations complete within [time] second[time == 1 ? "" : "s"]!")
if(GLOB.configuration.system.toast_on_init_complete)
rustg_create_toast("Paradise SS13", "Server initialization complete")
if(GLOB.configuration.general.developer_express_start)
SSticker.force_start = TRUE
+3
View File
@@ -415,6 +415,9 @@ SUBSYSTEM_DEF(garbage)
log_gc("Finished searching clients")
log_gc("Completed search for references to a [type].")
#ifdef FIND_REF_NOTIFY_ON_COMPLETE
rustg_create_toast("ParadiseSS13", "GC search complete for [type]")
#endif
if(usr && usr.client)
usr.client.running_find_references = null
running_find_references = null