mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 10:23:28 +00:00
Add OS::is_process_running function.
Adds the is_process_running function to the native OS class and exposes it to script.
This is implemented on Windows and Unix platforms. A stub is provided for other platforms that do not support this function.
Documentation is updated to reflect new API function.
(cherry picked from commit f3c1232c59)
This commit is contained in:
parent
cc12c69ea1
commit
53fb0440d3
12 changed files with 56 additions and 0 deletions
|
|
@ -901,6 +901,10 @@ int OS_JavaScript::get_process_id() const {
|
|||
ERR_FAIL_V_MSG(0, "OS::get_process_id() is not available on the HTML5 platform.");
|
||||
}
|
||||
|
||||
bool OS_JavaScript::is_process_running(const ProcessID &p_pid) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
int OS_JavaScript::get_processor_count() const {
|
||||
return godot_js_os_hw_concurrency_get();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue