mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 22:54:46 +00:00
[Ready for Review] Admin lua scripting (#65635) Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com> Co-authored-by: Y0SH1M4S73R <legoboyo@earthlink.net> 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")
|