MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / start_game_process

Method start_game_process

modules/mcp/mcp_server.cpp:207–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207Error 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
217Error MCPServer::stop_game_process() {
218 OS::ProcessID pid_to_kill = 0;

Callers 1

tool_project_configMethod · 0.80

Calls 3

killMethod · 0.45
create_processMethod · 0.45
get_executable_pathMethod · 0.45

Tested by

no test coverage detected