This commit is contained in:
Putnam
2020-05-11 17:09:35 -07:00
parent e8d7da56f4
commit 121d594faa
5 changed files with 24 additions and 9 deletions
+3 -2
View File
@@ -284,8 +284,9 @@ GLOBAL_LIST_INIT(atmos_adjacent_savings, list(0,0))
GLOBAL_VAR(atmos_extools_initialized) // this must be an uninitialized (null) one or init_fastmos will be called twice because reasons
#define ATMOS_EXTOOLS_CHECK if(!GLOB.atmos_extools_initialized){\
GLOB.atmos_extools_initialized=TRUE;\
if(fexists(world.system_type == MS_WINDOWS ? "byond-extools.dll" : "libbyond-extools.so")){\
var/result = call((world.system_type == MS_WINDOWS ? "byond-extools.dll" : "libbyond-extools.so"),"init_fastmos")();\
var/extools = world.GetConfig("env", "EXTOOLS_DLL") || "./byond-extools.dll";\
if(fexists(extools)){\
var/result = call(extools,"init_fastmos")();\
if(result != "ok") {CRASH(result);}\
} else {\
CRASH("byond-extools.dll does not exist!");\