mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Adds hooks for debugger specific behaviour (#28958)
* Adds hooks for debugger specific behaviour * Update .github/workflows/ci.yml Signed-off-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> --------- Signed-off-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
@@ -86,12 +86,13 @@ jobs:
|
||||
with:
|
||||
path: $HOME/BYOND
|
||||
key: ${{ runner.os }}-byond
|
||||
# We test PARADISE_PRODUCTION_HARDWARE here because we dont in station_mapload_tests
|
||||
- name: Compile All Maps
|
||||
run: |
|
||||
tools/ci/install_byond.sh
|
||||
source $HOME/BYOND/byond/bin/byondsetup
|
||||
tools/ci/generate_maplist.sh
|
||||
DreamMaker -DMULTIINSTANCE -DCIMAP paradise.dme
|
||||
DreamMaker -DMULTIINSTANCE -DCIMAP -DPARADISE_PRODUCTION_HARDWARE paradise.dme
|
||||
|
||||
station_mapload_tests:
|
||||
name: Station Tests
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
// These procs are named EXACTLY as they are since the debugger itself will hook into these procs internally
|
||||
// Do not change these names. Please. -aa
|
||||
|
||||
#ifndef PARADISE_PRODUCTION_HARDWARE
|
||||
// Use GLOB.debugger_enabled for debugger-specific behaviour like not delaying MC subsystems for delays
|
||||
// This is gated behind PARADISE_PRODUCTION_HARDWARE not being set so we dont have the check overhead in the MC loop on prod
|
||||
// By gating it we can ensure in CI that nothing has slipped in
|
||||
GLOBAL_VAR_INIT(debugger_enabled, FALSE)
|
||||
#endif
|
||||
|
||||
/proc/auxtools_stack_trace(msg)
|
||||
CRASH(msg)
|
||||
|
||||
@@ -22,3 +29,6 @@
|
||||
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
|
||||
if(debug_server)
|
||||
CALL_EXT(debug_server, "auxtools_shutdown")()
|
||||
#ifndef PARADISE_PRODUCTION_HARDWARE
|
||||
GLOB.debugger_enabled = TRUE
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user