AuxTools Port (#16926)

* Port auxtools from chomp

* call_ext
This commit is contained in:
Drathek
2025-01-25 11:05:06 -05:00
committed by GitHub
parent b7b630d592
commit de8e47c5a6
2 changed files with 23 additions and 0 deletions
+3
View File
@@ -6,3 +6,6 @@ dreamchecker = true
[code_standards]
disallow_relative_type_definitions = true
disallow_relative_proc_definitions = true
[debugger]
engine = "auxtools"
+20
View File
@@ -45,6 +45,11 @@
src.update_status()
setup_season() //VOREStation Addition
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (debug_server)
call_ext(debug_server, "auxtools_init")()
enable_debugging()
. = ..()
#ifdef UNIT_TEST
@@ -721,3 +726,18 @@ var/global/game_id = null
game_id = "[c[(t % l) + 1]][game_id]"
t = round(t / l)
return 1
/proc/auxtools_stack_trace(msg)
CRASH(msg)
/proc/auxtools_expr_stub()
CRASH("auxtools not loaded")
/proc/enable_debugging(mode, port)
CRASH("auxtools not loaded")
/world/Del()
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (debug_server)
call_ext(debug_server, "auxtools_shutdown")()
. = ..()