mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-04 13:45:25 +01:00
4e6e1f090e
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
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")
|