summaryrefslogtreecommitdiffstats
path: root/platform/web
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2024-07-16 14:38:01 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2024-09-06 14:16:39 +0300
commit10f3c1f5870ba1351d565218930d7dd455cce7a9 (patch)
tree184751065c8dd29ee797c7b0a0ec5aef2b60b240 /platform/web
parent05d985496c73577fb0b44291345da5f2dbe09844 (diff)
downloadredot-engine-10f3c1f5870ba1351d565218930d7dd455cce7a9.tar.gz
Add support for non-blocking IO mode to `OS.execute_with_pipe`.
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/os_web.cpp2
-rw-r--r--platform/web/os_web.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/web/os_web.cpp b/platform/web/os_web.cpp
index ef8f90421b..51facbaa84 100644
--- a/platform/web/os_web.cpp
+++ b/platform/web/os_web.cpp
@@ -105,7 +105,7 @@ Error OS_Web::execute(const String &p_path, const List<String> &p_arguments, Str
return create_process(p_path, p_arguments);
}
-Dictionary OS_Web::execute_with_pipe(const String &p_path, const List<String> &p_arguments) {
+Dictionary OS_Web::execute_with_pipe(const String &p_path, const List<String> &p_arguments, bool p_blocking) {
ERR_FAIL_V_MSG(Dictionary(), "OS::execute_with_pipe is not available on the Web platform.");
}
diff --git a/platform/web/os_web.h b/platform/web/os_web.h
index 55a5fcc6c6..1ddb745965 100644
--- a/platform/web/os_web.h
+++ b/platform/web/os_web.h
@@ -80,7 +80,7 @@ public:
bool main_loop_iterate();
Error execute(const String &p_path, const List<String> &p_arguments, String *r_pipe = nullptr, int *r_exitcode = nullptr, bool read_stderr = false, Mutex *p_pipe_mutex = nullptr, bool p_open_console = false) override;
- Dictionary execute_with_pipe(const String &p_path, const List<String> &p_arguments) override;
+ Dictionary execute_with_pipe(const String &p_path, const List<String> &p_arguments, bool p_blocking = true) override;
Error create_process(const String &p_path, const List<String> &p_arguments, ProcessID *r_child_id = nullptr, bool p_open_console = false) override;
Error kill(const ProcessID &p_pid) override;
int get_process_id() const override;