open_link through send_command

This commit is contained in:
Nordup 2024-09-04 00:45:23 +04:00
parent 01ee2b08e1
commit 27df0bf8a9
2 changed files with 5 additions and 1 deletions

View file

@ -37,6 +37,10 @@ func _execute_function(command: Command) -> Variant:
var url = Url.join(gate_events.current_gate_url, command.args[0])
gate_events.open_gate_emit(url)
"open_link":
if wrong_args_count(command, 1): return ERR_INVALID_PARAMETER
OS.shell_open(command.args[0])
_:
Debug.logerr("Command %s not implemented" % [command.name])
return ERR_METHOD_NOT_FOUND

2
godot

@ -1 +1 @@
Subproject commit 8da1c840ed391e731c5480e8055fcc8367da8da0
Subproject commit 49ad7a03ac239a56472c806055084afdf0adbd3d