aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Venner <[email protected]>2021-03-16 03:41:53 +0000
committerWilliam Venner <[email protected]>2021-03-16 03:41:53 +0000
commit9be85f7a074e301f1eed347e43488cc81b1ef292 (patch)
treeccd37d0c95cd1e9af1c37e947513499fcf7a880e
parentMerge pull request #33 from WilliamVenner/ugc-stats (diff)
downloadsteamworks-rs-9be85f7a074e301f1eed347e43488cc81b1ef292.tar.xz
steamworks-rs-9be85f7a074e301f1eed347e43488cc81b1ef292.zip
Make request_user_information return the returned bool from Steamworks
-rw-r--r--src/friends.rs4
1 files 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 <Manager> Friends<Manager> {
}
}
- 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)
}
}