| 4158 | } |
| 4159 | |
| 4160 | static int internal_findScript(lua_State *L) |
| 4161 | { |
| 4162 | const char *name = luaL_checkstring(L, 1); |
| 4163 | std::filesystem::path path = Core::getInstance().findScript(name); |
| 4164 | if (!path.empty()) |
| 4165 | lua_pushstring(L, Filesystem::as_string(path).c_str()); |
| 4166 | else |
| 4167 | lua_pushnil(L); |
| 4168 | return 1; |
| 4169 | } |
| 4170 | |
| 4171 | static int internal_listPlugins(lua_State *L) |
| 4172 | { |
nothing calls this directly
no test coverage detected