From 90a1f8d8a7789c6fa9191c8684cd24edca066577 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 23 Jan 2020 01:25:47 +0100 Subject: Make `OS.execute()` blocking by default if not specified This makes `OS.execute()` calls quicker to set up when calling programs in a blocking fashion. --- core/os/os.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/os') diff --git a/core/os/os.h b/core/os/os.h index 714c4e3f09..80b5843bd5 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -267,7 +267,7 @@ public: virtual int get_low_processor_usage_mode_sleep_usec() const; virtual String get_executable_path() const; - virtual Error execute(const String &p_path, const List &p_arguments, bool p_blocking, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false, Mutex *p_pipe_mutex = NULL) = 0; + virtual Error execute(const String &p_path, const List &p_arguments, bool p_blocking = true, ProcessID *r_child_id = NULL, String *r_pipe = NULL, int *r_exitcode = NULL, bool read_stderr = false, Mutex *p_pipe_mutex = NULL) = 0; virtual Error kill(const ProcessID &p_pid) = 0; virtual int get_process_id() const; virtual void vibrate_handheld(int p_duration_ms = 500); -- cgit v1.2.3