1
0
Fork 0

Merge pull request #106504 from adamscott/return-without-error-os-get-process-id

[Web] Always return `0` for `OS::get_process_id()`
This commit is contained in:
Thaddeus Crews 2025-05-19 08:01:28 -05:00
commit 41bc5ea49c
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@
<return type="int" />
<description>
Returns the number used by the host machine to uniquely identify this application.
[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS, and Windows.
[b]Note:[/b] On Web, this method always returns [code]0[/code].
</description>
</method>
<method name="get_processor_count" qualifiers="const">

View File

@ -129,7 +129,7 @@ Error OS_Web::kill(const ProcessID &p_pid) {
}
int OS_Web::get_process_id() const {
ERR_FAIL_V_MSG(0, "OS::get_process_id() is not available on the Web platform.");
return 0;
}
bool OS_Web::is_process_running(const ProcessID &p_pid) const {