mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add get_process_exit_code() method
This commit is contained in:
@@ -408,11 +408,20 @@
|
||||
[b]Note:[/b] On Web platforms, it is still possible to determine the host platform's OS with feature tags. See [method has_feature].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_process_exit_code" qualifiers="const">
|
||||
<return type="int" />
|
||||
<param index="0" name="pid" type="int" />
|
||||
<description>
|
||||
Returns the exit code of a spawned process once it has finished running (see [method is_process_running]).
|
||||
Returns [code]-1[/code] if the [param pid] is not a PID of a spawned child process, the process is still running, or the method is not implemented for the current platform.
|
||||
[b]Note:[/b] This method is implemented on Android, Linux, macOS and Windows.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_process_id" qualifiers="const">
|
||||
<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] This method is implemented on Android, iOS, Linux, macOS, and Windows.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_processor_count" qualifiers="const">
|
||||
@@ -592,7 +601,7 @@
|
||||
<param index="0" name="pid" type="int" />
|
||||
<description>
|
||||
Returns [code]true[/code] if the child process ID ([param pid]) is still running or [code]false[/code] if it has terminated. [param pid] must be a valid ID generated from [method create_process].
|
||||
[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS and Windows.
|
||||
[b]Note:[/b] This method is implemented on Android, iOS, Linux, macOS, and Windows.
|
||||
</description>
|
||||
</method>
|
||||
<method name="is_restart_on_exit_set" qualifiers="const">
|
||||
|
||||
Reference in New Issue
Block a user