fix the runtimes

This commit is contained in:
Katherine Kiefer
2024-03-10 12:41:16 +11:00
parent 9f66eaaa26
commit a41d6b4369
6 changed files with 107 additions and 12 deletions
+14
View File
@@ -9,6 +9,11 @@ GLOBAL_LIST(topic_status_cache)
//So subsystems globals exist, but are not initialised
/world/New()
var/dll = GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (dll)
call_ext(dll, "auxtools_init")()
enable_debugging()
world.Profile(PROFILE_START)
log_world("World loaded at [TIME_STAMP("hh:mm:ss", FALSE)]!")
@@ -262,14 +267,23 @@ GLOBAL_LIST(topic_status_cache)
if(do_hard_reboot)
log_world("World hard rebooted at [TIME_STAMP("hh:mm:ss", FALSE)]")
shutdown_logging() // See comment below.
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (debug_server)
call_ext(debug_server, "auxtools_shutdown")()
TgsEndProcess()
log_world("World rebooted at [TIME_STAMP("hh:mm:ss", FALSE)]")
shutdown_logging() // Past this point, no logging procs can be used, at risk of data loss.
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (debug_server)
call_ext(debug_server, "auxtools_shutdown")()
..()
/world/Del()
shutdown_logging() // makes sure the thread is closed before end, else we terminate
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (debug_server)
call_ext(debug_server, "auxtools_shutdown")()
..()
/world/proc/update_status()