From 27df0bf8a92a15b3fe39d7918a837cec9f46ec8e Mon Sep 17 00:00:00 2001 From: Nordup Date: Wed, 4 Sep 2024 00:45:23 +0400 Subject: [PATCH] open_link through send_command --- app/scripts/sandbox/command_sync.gd | 4 ++++ godot | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/scripts/sandbox/command_sync.gd b/app/scripts/sandbox/command_sync.gd index 19c4378..f82f7b0 100644 --- a/app/scripts/sandbox/command_sync.gd +++ b/app/scripts/sandbox/command_sync.gd @@ -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 diff --git a/godot b/godot index 8da1c84..49ad7a0 160000 --- a/godot +++ b/godot @@ -1 +1 @@ -Subproject commit 8da1c840ed391e731c5480e8055fcc8367da8da0 +Subproject commit 49ad7a03ac239a56472c806055084afdf0adbd3d