From a5c6ca592023fea7317c0c3fb54639036c66dd76 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Mon, 24 Apr 2023 11:45:45 -0500 Subject: Update to load function pointers for GDExtension interface --- include/godot_cpp/classes/ref.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/godot_cpp/classes') diff --git a/include/godot_cpp/classes/ref.hpp b/include/godot_cpp/classes/ref.hpp index af7711c..301f847 100644 --- a/include/godot_cpp/classes/ref.hpp +++ b/include/godot_cpp/classes/ref.hpp @@ -242,7 +242,7 @@ struct PtrToArg> { _FORCE_INLINE_ static Ref convert(const void *p_ptr) { // Important: p_ptr is T*, not Ref*, since Object* is what engine gives to ptrcall. ERR_FAIL_NULL_V(p_ptr, Ref()); - return Ref(reinterpret_cast(godot::internal::gde_interface->object_get_instance_binding( + return Ref(reinterpret_cast(godot::internal::gdextension_interface_object_get_instance_binding( reinterpret_cast(const_cast(p_ptr)), godot::internal::token, &T::___binding_callbacks))); } @@ -256,7 +256,7 @@ struct PtrToArg> { // This code assumes that p_ptr points to an unset Ref variable on the Godot side // so we only set it if we have an object to set. if (p_val.is_valid()) { - godot::internal::gde_interface->ref_set_object(ref, p_val->_owner); + godot::internal::gdextension_interface_ref_set_object(ref, p_val->_owner); } } }; @@ -267,7 +267,7 @@ struct PtrToArg &> { _FORCE_INLINE_ static Ref convert(const void *p_ptr) { ERR_FAIL_NULL_V(p_ptr, Ref()); - return Ref(reinterpret_cast(godot::internal::gde_interface->object_get_instance_binding( + return Ref(reinterpret_cast(godot::internal::gdextension_interface_object_get_instance_binding( reinterpret_cast(const_cast(p_ptr)), godot::internal::token, &T::___binding_callbacks))); } -- cgit v1.2.3