diff options
| author | Matthew Collins <[email protected]> | 2021-02-10 20:45:39 +0000 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2021-02-10 20:45:39 +0000 |
| commit | 4d91f1939315d5eb9699fb8851156d8fa5c820e5 (patch) | |
| tree | ee52cb6602ab249bd07f42adc9105edf3d4eb399 /src | |
| parent | Merge pull request #25 from adumbidiot/add-readme (diff) | |
| download | steamworks-rs-4d91f1939315d5eb9699fb8851156d8fa5c820e5.tar.xz steamworks-rs-4d91f1939315d5eb9699fb8851156d8fa5c820e5.zip | |
Update to steamworks 151
Diffstat (limited to 'src')
| -rw-r--r-- | src/friends.rs | 4 | ||||
| -rw-r--r-- | src/lib.rs | 10 | ||||
| -rw-r--r-- | src/ugc.rs | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/friends.rs b/src/friends.rs index 5159732..ddc9a7a 100644 --- a/src/friends.rs +++ b/src/friends.rs @@ -236,7 +236,7 @@ impl <Manager> Friend<Manager> { /// Returns a small (32x32) avatar for the user in RGBA format pub fn small_avatar(&self) -> Option<Vec<u8>> { unsafe { - let utils = sys::SteamAPI_SteamUtils_v009(); + let utils = sys::SteamAPI_SteamUtils_v010(); let img = sys::SteamAPI_ISteamFriends_GetSmallFriendAvatar(self.friends, self.id.0); if img == 0 { return None; @@ -259,7 +259,7 @@ impl <Manager> Friend<Manager> { /// Returns a medium (64x64) avatar for the user in RGBA format pub fn medium_avatar(&self) -> Option<Vec<u8>> { unsafe { - let utils = sys::SteamAPI_SteamUtils_v009(); + let utils = sys::SteamAPI_SteamUtils_v010(); let img = sys::SteamAPI_ISteamFriends_GetMediumFriendAvatar(self.friends, self.id.0); if img == 0 { return None; @@ -206,7 +206,7 @@ impl <Manager> Client<Manager> { /// Returns an accessor to the steam utils interface pub fn utils(&self) -> Utils<Manager> { unsafe { - let utils = sys::SteamAPI_SteamUtils_v009(); + let utils = sys::SteamAPI_SteamUtils_v010(); debug_assert!(!utils.is_null()); Utils { utils: utils, @@ -267,7 +267,7 @@ impl <Manager> Client<Manager> { /// Returns an accessor to the steam user interface pub fn user(&self) -> User<Manager> { unsafe { - let user = sys::SteamAPI_SteamUser_v020(); + let user = sys::SteamAPI_SteamUser_v021(); debug_assert!(!user.is_null()); User { user, @@ -279,7 +279,7 @@ impl <Manager> Client<Manager> { /// Returns an accessor to the steam user stats interface pub fn user_stats(&self) -> UserStats<Manager> { unsafe { - let us = sys::SteamAPI_SteamUserStats_v011(); + let us = sys::SteamAPI_SteamUserStats_v012(); debug_assert!(!us.is_null()); UserStats { user_stats: us, @@ -293,7 +293,7 @@ impl <Manager> Client<Manager> { unsafe { let rs = sys::SteamAPI_SteamRemoteStorage_v014(); debug_assert!(!rs.is_null()); - let util = sys::SteamAPI_SteamUtils_v009(); + let util = sys::SteamAPI_SteamUtils_v010(); debug_assert!(!util.is_null()); RemoteStorage { rs, @@ -306,7 +306,7 @@ impl <Manager> Client<Manager> { /// Returns an accessor to the steam UGC interface (steam workshop) pub fn ugc(&self) -> UGC<Manager> { unsafe { - let ugc = sys::SteamAPI_SteamUGC_v014(); + let ugc = sys::SteamAPI_SteamUGC_v015(); debug_assert!(!ugc.is_null()); UGC { ugc, @@ -663,7 +663,7 @@ impl <Manager> UserListQuery<Manager> { register_call_result::<sys::SteamUGCQueryCompleted_t, _, _>( &inner, api_call, CALLBACK_BASE_ID + 1, move |v, io_error| { - let ugc = sys::SteamAPI_SteamUGC_v014(); + let ugc = sys::SteamAPI_SteamUGC_v015(); if io_error { sys::SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(ugc, handle); cb(Err(SteamError::IOFailure)); |