diff options
| author | Matthew Collins <[email protected]> | 2021-03-20 15:03:16 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-20 15:03:16 +0000 |
| commit | 986ccf17869f5ba0bfc51db2fd08e8d0ca1ab6a7 (patch) | |
| tree | 7994752876df859e5adb651be3283ae5f5fbd893 | |
| parent | Merge pull request #38 from adumbidiot/rebuild-env (diff) | |
| parent | Make request_user_information return the returned bool from Steamworks (diff) | |
| download | steamworks-rs-986ccf17869f5ba0bfc51db2fd08e8d0ca1ab6a7.tar.xz steamworks-rs-986ccf17869f5ba0bfc51db2fd08e8d0ca1ab6a7.zip | |
Merge pull request #36 from WilliamVenner/req_user_info_return
Make request_user_information return the returned bool from Steamworks
| -rw-r--r-- | src/friends.rs | 4 |
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) } } |