mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
[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:
@@ -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"])
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user