| 205 | } |
| 206 | |
| 207 | Error MCPServer::start_game_process(const List<String> &p_args, const String &p_log_path) { |
| 208 | MutexLock lock(process_mutex); |
| 209 | if (game_pid != 0) { |
| 210 | OS::get_singleton()->kill(game_pid); |
| 211 | game_pid = 0; |
| 212 | } |
| 213 | game_log_path = p_log_path; |
| 214 | return OS::get_singleton()->create_process(OS::get_singleton()->get_executable_path(), p_args, &game_pid); |
| 215 | } |
| 216 | |
| 217 | Error MCPServer::stop_game_process() { |
| 218 | OS::ProcessID pid_to_kill = 0; |
no test coverage detected