Add get_process_exit_code() method
This commit is contained in:
parent
30e71782af
commit
dce4a3e4c2
10 changed files with 118 additions and 3 deletions
|
|
@ -338,6 +338,10 @@ bool OS::is_process_running(int p_pid) const {
|
|||
return ::OS::get_singleton()->is_process_running(p_pid);
|
||||
}
|
||||
|
||||
int OS::get_process_exit_code(int p_pid) const {
|
||||
return ::OS::get_singleton()->get_process_exit_code(p_pid);
|
||||
}
|
||||
|
||||
int OS::get_process_id() const {
|
||||
return ::OS::get_singleton()->get_process_id();
|
||||
}
|
||||
|
|
@ -602,6 +606,7 @@ void OS::_bind_methods() {
|
|||
ClassDB::bind_method(D_METHOD("shell_open", "uri"), &OS::shell_open);
|
||||
ClassDB::bind_method(D_METHOD("shell_show_in_file_manager", "file_or_dir_path", "open_folder"), &OS::shell_show_in_file_manager, DEFVAL(true));
|
||||
ClassDB::bind_method(D_METHOD("is_process_running", "pid"), &OS::is_process_running);
|
||||
ClassDB::bind_method(D_METHOD("get_process_exit_code", "pid"), &OS::get_process_exit_code);
|
||||
ClassDB::bind_method(D_METHOD("get_process_id"), &OS::get_process_id);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("has_environment", "variable"), &OS::has_environment);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue