Files
fulpstation/code/__HELPERS/_auxtools_api.dm
Pepsilawn 450295354b Updates the Fulpstation codebase to the 01/08/2022 version of the tgstation repository (#755)
* Automatic changelog compile [ci skip]

* Update readme.md

* Automatic changelog compile [ci skip]

* what

* Wow

* Foiled by my very own grep check

* dont tell anyone i forgot to update basemaps

* The gags vendor updatepath script is broken

* can be untg-edited later just want to see TGU running soon

* Revert "can be untg-edited later just want to see TGU running soon"

This reverts commit c14b2be919.

* I like this better

* test

* i am sleep deprived

* Humanoid screenshot tests 4 backpack resprite

* infils have backpacks too apparently

* makes bloodsuckers not cooldown anymore

* removes more cooldowns

* fixes some bugs

Co-authored-by: Changelogs <action@github.com>
Co-authored-by: JohnFulpWillard <53777086+JohnFulpWillard@users.noreply.github.com>
2022-08-05 02:26:53 -04:00

31 lines
849 B
Plaintext

#define AUXTOOLS_FULL_INIT 2
#define AUXTOOLS_PARTIAL_INIT 1
GLOBAL_LIST_EMPTY(auxtools_initialized)
#define AUXTOOLS_CHECK(LIB)\
if (GLOB.auxtools_initialized[LIB] != AUXTOOLS_FULL_INIT) {\
if (fexists(LIB)) {\
var/string = call(LIB,"auxtools_init")();\
if(findtext(string, "SUCCESS")) {\
GLOB.auxtools_initialized[LIB] = AUXTOOLS_FULL_INIT;\
} else {\
CRASH(string);\
}\
} else {\
CRASH("No file named [LIB] found!")\
}\
}\
#define AUXTOOLS_SHUTDOWN(LIB)\
if (GLOB.auxtools_initialized[LIB] == AUXTOOLS_FULL_INIT && fexists(LIB)){\
call(LIB,"auxtools_shutdown")();\
GLOB.auxtools_initialized[LIB] = AUXTOOLS_PARTIAL_INIT;\
}\
#define AUXTOOLS_FULL_SHUTDOWN(LIB)\
if (GLOB.auxtools_initialized[LIB] && fexists(LIB)){\
call(LIB,"auxtools_full_shutdown")();\
GLOB.auxtools_initialized[LIB] = FALSE;\
}\