| 255 | } |
| 256 | |
| 257 | void EditorFileServer::start() { |
| 258 | if (active) { |
| 259 | stop(); |
| 260 | } |
| 261 | port = EDITOR_GET("filesystem/file_server/port"); |
| 262 | password = EDITOR_GET("filesystem/file_server/password"); |
| 263 | Error err = server->listen(port); |
| 264 | ERR_FAIL_COND_MSG(err != OK, "EditorFileServer: Unable to listen on port " + itos(port)); |
| 265 | active = true; |
| 266 | } |
| 267 | |
| 268 | bool EditorFileServer::is_active() const { |
| 269 | return active; |
no test coverage detected