| 228 | } |
| 229 | |
| 230 | void EditorRun::stop() { |
| 231 | if (status != STATUS_STOP && pids.size() > 0) { |
| 232 | for (const OS::ProcessID &E : pids) { |
| 233 | OS::get_singleton()->kill(E); |
| 234 | } |
| 235 | pids.clear(); |
| 236 | } |
| 237 | |
| 238 | status = STATUS_STOP; |
| 239 | running_scene = ""; |
| 240 | } |
| 241 | |
| 242 | OS::ProcessID EditorRun::get_current_process() const { |
| 243 | if (pids.front() == nullptr) { |
no test coverage detected