From 1d51acb38dbd60a862d9bb2f82dfba204866cd7a Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 30 Apr 2022 18:31:24 +0700 Subject: [PATCH] Register pipe.close() method Allows kill() method of unix PTY node to be called without error. --- CHANGELOG.md | 5 +++++ addons/godot_xterm/native/src/pipe.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 09bae13..67540e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 `libgodot-xterm.osx.64.dylib` is now a universal binary that runs natively on both x86_64 and arm64. +### Fixed +- The `kill()` method of unix PTY node can now be called without error as the underlying + `pipe.close()` method of the gdnative library is now registered. + + ## [v2.0.0](https://github.com/lihop/godot-xterm/compare/v1.2.1...v2.0.0) - 2021-07-25 ### Added - Terminal editor plugin. Adds integrated terminal to Godot editor. diff --git a/addons/godot_xterm/native/src/pipe.cpp b/addons/godot_xterm/native/src/pipe.cpp index 89e36b4..164f7b8 100644 --- a/addons/godot_xterm/native/src/pipe.cpp +++ b/addons/godot_xterm/native/src/pipe.cpp @@ -25,6 +25,7 @@ void Pipe::_register_methods() { register_method("poll", &Pipe::_poll_connection); register_method("open", &Pipe::open); register_method("write", &Pipe::write); + register_method("close", &Pipe::close); register_signal("data_received", "data", GODOT_VARIANT_TYPE_POOL_BYTE_ARRAY);