mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
13 lines
481 B
Plaintext
13 lines
481 B
Plaintext
/// Macro for getting the auxtools library file
|
|
#define AUXLUA (world.system_type == MS_WINDOWS ? "auxlua.dll" : __detect_auxtools("auxlua"))
|
|
|
|
/proc/__detect_auxtools(library)
|
|
if(IsAdminAdvancedProcCall())
|
|
return
|
|
if (fexists("./lib[library].so"))
|
|
return "./lib[library].so"
|
|
else if (fexists("[world.GetConfig("env", "HOME")]/.byond/bin/lib[library].so"))
|
|
return "[world.GetConfig("env", "HOME")]/.byond/bin/lib[library].so"
|
|
else
|
|
CRASH("Could not find lib[library].so")
|