| 4143 | } |
| 4144 | |
| 4145 | static int internal_getScriptPaths(lua_State *L) |
| 4146 | { |
| 4147 | int i = 1; |
| 4148 | lua_newtable(L); |
| 4149 | vector<std::filesystem::path> paths; |
| 4150 | Core::getInstance().getScriptPaths(&paths); |
| 4151 | for (auto it = paths.begin(); it != paths.end(); ++it) |
| 4152 | { |
| 4153 | lua_pushinteger(L, i++); |
| 4154 | lua_pushstring(L, it->string().c_str()); |
| 4155 | lua_settable(L, -3); |
| 4156 | } |
| 4157 | return 1; |
| 4158 | } |
| 4159 | |
| 4160 | static int internal_findScript(lua_State *L) |
| 4161 | { |
nothing calls this directly
no test coverage detected