| 116 | } |
| 117 | |
| 118 | Error OS_Web::create_process(const String &p_path, const List<String> &p_arguments, ProcessID *r_child_id, bool p_open_console) { |
| 119 | Array args; |
| 120 | for (const String &E : p_arguments) { |
| 121 | args.push_back(E); |
| 122 | } |
| 123 | String json_args = Variant(args).to_json_string(); |
| 124 | int failed = godot_js_os_execute(json_args.utf8().get_data()); |
| 125 | ERR_FAIL_COND_V_MSG(failed, ERR_UNAVAILABLE, "OS::execute() or create_process() must be implemented in Web via 'engine.setOnExecute' if required."); |
| 126 | return OK; |
| 127 | } |
| 128 | |
| 129 | Error OS_Web::kill(const ProcessID &p_pid) { |
| 130 | ERR_FAIL_V_MSG(ERR_UNAVAILABLE, "OS::kill() is not available on the Web platform."); |
nothing calls this directly
no test coverage detected