diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-01 14:12:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 14:12:33 +0100 |
commit | 4d96d37ca2200fddaa56980a80d69265bedbebae (patch) | |
tree | 05f60739b5a0b5b3910425b4a2c767f30dc0aba9 /core/os/os.h | |
parent | 02ae47154cfb17c42e73dc16b2ca6b8218862d69 (diff) | |
parent | 0b6b8427c81f60f6298491100ceaed3247649539 (diff) |
Merge pull request #54476 from bruvzg/monterey_create_instance
Diffstat (limited to 'core/os/os.h')
-rw-r--r-- | core/os/os.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h index f02f600c58..52bf731501 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -151,6 +151,7 @@ public: virtual String get_executable_path() const; virtual 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) = 0; virtual Error create_process(const String &p_path, const List<String> &p_arguments, ProcessID *r_child_id = nullptr) = 0; + virtual Error create_instance(const List<String> &p_arguments, ProcessID *r_child_id = nullptr) { return create_process(get_executable_path(), p_arguments, r_child_id); }; virtual Error kill(const ProcessID &p_pid) = 0; virtual int get_process_id() const; virtual void vibrate_handheld(int p_duration_ms = 500); |