| 4128 | } |
| 4129 | |
| 4130 | static 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 | |
| 4138 | static int internal_removeScriptPath(lua_State *L) |
| 4139 | { |
nothing calls this directly
no test coverage detected