From 9be85f7a074e301f1eed347e43488cc81b1ef292 Mon Sep 17 00:00:00 2001 From: William Venner Date: Tue, 16 Mar 2021 03:41:53 +0000 Subject: Make request_user_information return the returned bool from Steamworks --- src/friends.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/friends.rs b/src/friends.rs index 5ac49f8..66ab182 100644 --- a/src/friends.rs +++ b/src/friends.rs @@ -91,9 +91,9 @@ impl Friends { } } - pub fn request_user_information(&self, user: SteamId, name_only: bool) { + pub fn request_user_information(&self, user: SteamId, name_only: bool) -> bool { unsafe { - sys::SteamAPI_ISteamFriends_RequestUserInformation(self.friends, user.0, name_only); + sys::SteamAPI_ISteamFriends_RequestUserInformation(self.friends, user.0, name_only) } } -- cgit v1.2.3