MCPcopy Create free account
hub / github.com/DFHack/dfhack / internal_addScriptPath

Function internal_addScriptPath

library/LuaApi.cpp:4130–4136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4128}
4129
4130static int internal_addScriptPath(lua_State *L)
4131{
4132 const char *path = luaL_checkstring(L, 1);
4133 bool search_before = (lua_gettop(L) > 1 && lua_toboolean(L, 2));
4134 lua_pushboolean(L, Core::getInstance().addScriptPath(path, search_before));
4135 return 1;
4136}
4137
4138static int internal_removeScriptPath(lua_State *L)
4139{

Callers

nothing calls this directly

Calls 4

lua_gettopFunction · 0.85
lua_tobooleanFunction · 0.85
lua_pushbooleanFunction · 0.85
addScriptPathMethod · 0.80

Tested by

no test coverage detected