You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Android: OS.create_instance() should return -1 on failure
This commit is contained in:
@@ -863,6 +863,9 @@ Error OS_Android::create_process(const String &p_path, const List<String> &p_arg
|
||||
|
||||
Error OS_Android::create_instance(const List<String> &p_arguments, ProcessID *r_child_id) {
|
||||
int instance_id = godot_java->create_new_godot_instance(p_arguments);
|
||||
if (instance_id == -1) {
|
||||
return FAILED;
|
||||
}
|
||||
if (r_child_id) {
|
||||
*r_child_id = instance_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user