From cb2be8723a16f9fdb13582562cb630c945dcd0a7 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 30 Jun 2023 11:44:33 +0200 Subject: Support building for Godot 4.1 (new default). --- src/WebRTCLibPeerConnection.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/WebRTCLibPeerConnection.hpp') diff --git a/src/WebRTCLibPeerConnection.hpp b/src/WebRTCLibPeerConnection.hpp index c4f8111..6608735 100644 --- a/src/WebRTCLibPeerConnection.hpp +++ b/src/WebRTCLibPeerConnection.hpp @@ -79,7 +79,11 @@ public: SignalingState _get_signaling_state() const override; godot::Error _initialize(const godot::Dictionary &p_config) override; +#if defined(GDNATIVE_WEBRTC) || defined(GDEXTENSION_WEBRTC_40) godot::Object *_create_data_channel(const godot::String &p_channel, const godot::Dictionary &p_channel_config) override; +#else + godot::Ref _create_data_channel(const godot::String &p_channel, const godot::Dictionary &p_channel_config) override; +#endif godot::Error _create_offer() override; godot::Error _set_remote_description(const godot::String &type, const godot::String &sdp) override; godot::Error _set_local_description(const godot::String &type, const godot::String &sdp) override; -- cgit v1.2.3