diff options
author | Goutte <antoine@goutenoir.com> | 2024-08-20 13:43:25 +0200 |
---|---|---|
committer | Goutte <antoine@goutenoir.com> | 2024-08-22 00:49:52 +0200 |
commit | a014705d640d1f72eefad5a2e95032bc59647f8b (patch) | |
tree | d339434269e279b55b005809a7cc37aaf6f0d27c | |
parent | 826de7976a6add282c7b14d4be2a7e6d775821d8 (diff) | |
download | redot-engine-a014705d640d1f72eefad5a2e95032bc59647f8b.tar.gz |
docs: update UPnP gdscript snippet to latest gdscript
This commit adds usage of the new (stringless) signal API.
-rw-r--r-- | modules/upnp/doc_classes/UPNP.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/upnp/doc_classes/UPNP.xml b/modules/upnp/doc_classes/UPNP.xml index 7eba3ad8ec..4b5ad07688 100644 --- a/modules/upnp/doc_classes/UPNP.xml +++ b/modules/upnp/doc_classes/UPNP.xml @@ -31,13 +31,13 @@ if err != OK: push_error(str(err)) - emit_signal("upnp_completed", err) + upnp_completed.emit(err) return if upnp.get_gateway() and upnp.get_gateway().is_valid_gateway(): upnp.add_port_mapping(server_port, server_port, ProjectSettings.get_setting("application/config/name"), "UDP") upnp.add_port_mapping(server_port, server_port, ProjectSettings.get_setting("application/config/name"), "TCP") - emit_signal("upnp_completed", OK) + upnp_completed.emit(OK) func _ready(): thread = Thread.new() |