| 4169 | } |
| 4170 | |
| 4171 | static int internal_listPlugins(lua_State *L) |
| 4172 | { |
| 4173 | auto plugins = Core::getInstance().getPluginManager(); |
| 4174 | |
| 4175 | int i = 1; |
| 4176 | lua_newtable(L); |
| 4177 | for (auto it = plugins->begin(); it != plugins->end(); ++it) |
| 4178 | { |
| 4179 | lua_pushinteger(L, i++); |
| 4180 | lua_pushstring(L, it->first.c_str()); |
| 4181 | lua_settable(L, -3); |
| 4182 | } |
| 4183 | return 1; |
| 4184 | } |
| 4185 | |
| 4186 | static int internal_listCommands(lua_State *L) |
| 4187 | { |
nothing calls this directly
no test coverage detected