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

Method create_process

core/core_bind.cpp:448–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448int OS::create_process(const String &p_path, const Vector<String> &p_arguments, bool p_open_console) {
449 List<String> args;
450 for (const String &arg : p_arguments) {
451 args.push_back(arg);
452 }
453 ::OS::ProcessID pid = 0;
454 Error err = ::OS::get_singleton()->create_process(p_path, args, &pid, p_open_console);
455 if (err != OK) {
456 return -1;
457 }
458 return pid;
459}
460
461Error OS::kill(int p_pid) {
462 return ::OS::get_singleton()->kill(p_pid);

Callers 7

start_blenderMethod · 0.45
tool_project_configMethod · 0.45
start_game_processMethod · 0.45
editMethod · 0.45
_file_optionMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected