From 895129384a79e567431b97213a8387717900c21f Mon Sep 17 00:00:00 2001 From: Sigma-dev Date: Sat, 7 Sep 2024 12:01:19 +0200 Subject: [PATCH] Added return value to AcceptSessionWithUser --- src/networking_messages.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/networking_messages.rs b/src/networking_messages.rs index 1f1257e..b61dc01 100644 --- a/src/networking_messages.rs +++ b/src/networking_messages.rs @@ -292,9 +292,9 @@ impl SessionRequest { } /// Accept the connection. - pub fn accept(self) { + pub fn accept(self) -> bool { unsafe { - sys::SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser( + return sys::SteamAPI_ISteamNetworkingMessages_AcceptSessionWithUser( self.messages, self.remote.as_ptr(), );