From c2b68d0ba339156805f58dc5514a2cbb5b25c9d0 Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 5 Feb 2020 20:35:24 +0100 Subject: [PATCH 1/2] Adds debbuging --- code/__DEFINES/spaceman_dmm.dm | 5 +++++ code/game/world.dm | 1 + 2 files changed, 6 insertions(+) diff --git a/code/__DEFINES/spaceman_dmm.dm b/code/__DEFINES/spaceman_dmm.dm index e590a30ff9..8f7f9c5bf7 100644 --- a/code/__DEFINES/spaceman_dmm.dm +++ b/code/__DEFINES/spaceman_dmm.dm @@ -11,3 +11,8 @@ #define SHOULD_CALL_PARENT(X) #define UNLINT(X) X #endif + +/world/proc/enable_debugger() + var/dll = world.GetConfig("env", "EXTOOLS_DLL") + if(dll) + call(dll, "debug_initialize")() diff --git a/code/game/world.dm b/code/game/world.dm index 8e18f2ea51..6b380e0f94 100644 --- a/code/game/world.dm +++ b/code/game/world.dm @@ -8,6 +8,7 @@ GLOBAL_LIST(topic_status_cache) //This happens after the Master subsystem new(s) (it's a global datum) //So subsystems globals exist, but are not initialised /world/New() + enable_debugger() log_world("World loaded at [TIME_STAMP("hh:mm:ss", FALSE)]!") From 78339881de6e3faf4acafb3cbcdce6d8c858d04d Mon Sep 17 00:00:00 2001 From: Artur Date: Wed, 5 Feb 2020 21:37:36 +0100 Subject: [PATCH 2/2] Wierd ass formatting causing tabs to betray me --- code/__DEFINES/spaceman_dmm.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/__DEFINES/spaceman_dmm.dm b/code/__DEFINES/spaceman_dmm.dm index 8f7f9c5bf7..b9c0544bc1 100644 --- a/code/__DEFINES/spaceman_dmm.dm +++ b/code/__DEFINES/spaceman_dmm.dm @@ -14,5 +14,5 @@ /world/proc/enable_debugger() var/dll = world.GetConfig("env", "EXTOOLS_DLL") - if(dll) - call(dll, "debug_initialize")() + if (dll) + call(dll, "debug_initialize")()