mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-09 16:43:51 +00:00
22 lines
533 B
Plaintext
22 lines
533 B
Plaintext
GLOBAL_LIST_EMPTY(auxtools_initialized)
|
|
|
|
#define AUXTOOLS_CHECK(LIB)\
|
|
if (!GLOB.auxtools_initialized[LIB]) {\
|
|
if (fexists(LIB)) {\
|
|
var/string = call(LIB,"auxtools_init")();\
|
|
if(findtext(string, "SUCCESS")) {\
|
|
GLOB.auxtools_initialized[LIB] = TRUE;\
|
|
} else {\
|
|
CRASH(string);\
|
|
}\
|
|
} else {\
|
|
CRASH("No file named [LIB] found!")\
|
|
}\
|
|
}\
|
|
|
|
#define AUXTOOLS_SHUTDOWN(LIB)\
|
|
if (GLOB.auxtools_initialized[LIB] && fexists(LIB)){\
|
|
call(LIB,"auxtools_shutdown")();\
|
|
GLOB.auxtools_initialized[LIB] = FALSE;\
|
|
}\
|