mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
Makes the code compatible with 515.1594+
Few simple changes and one very painful one.
Let's start with the easy:
* puts call behind `LIBCALL` define, so call_ext is properly used in 515
* Adds `NAMEOF_STATIC(_,X)` macro for nameof in static definitions since
src is now invalid there.
* Fixes tgui and devserver. From 515 onward the tmp3333{procid} cache
directory is not appened to base path in browser controls so we don't
check for it in base js and put the dev server dummy window file in
actual directory not the byond root.
* Renames the few things that had /final/ in typepath to ultimate since
final is a new keyword
And the very painful change:
`.proc/whatever` format is no longer valid, so we're replacing it with
new nameof() function. All this wrapped in three new macros.
`PROC_REF(X)`,`TYPE_PROC_REF(TYPE,X)`,`GLOBAL_PROC_REF(X)`. Global is
not actually necessary but if we get nameof that does not allow globals
it would be nice validation.
This is pretty unwieldy but there's no real alternative.
If you notice anything weird in the commits let me know because majority
was done with regex replace.
@tgstation/commit-access Since the .proc/stuff is pretty big change.
Co-authored-by: san7890 <the@san7890.com>
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
14 lines
491 B
Plaintext
14 lines
491 B
Plaintext
//Datum used to init Auxtools debugging as early as possible
|
|
//Datum gets created in master.dm because for whatever reason global code in there gets runs first
|
|
//In case we ever figure out how to manipulate global init order please move the datum creation into this file
|
|
/datum/debugger
|
|
|
|
/datum/debugger/New()
|
|
enable_debugger()
|
|
|
|
/datum/debugger/proc/enable_debugger()
|
|
var/dll = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
|
|
if (dll)
|
|
LIBCALL(dll, "auxtools_init")()
|
|
enable_debugging()
|