From 4d91f1939315d5eb9699fb8851156d8fa5c820e5 Mon Sep 17 00:00:00 2001 From: Matthew Collins Date: Wed, 10 Feb 2021 20:45:39 +0000 Subject: Update to steamworks 151 --- README.md | 2 +- src/friends.rs | 4 ++-- src/lib.rs | 10 +++++----- src/ugc.rs | 2 +- steamworks-sys/src/bindings.rs | 8 ++++---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 107c809..e3c8c79 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ steamworks = "0.6.1" Ensure that your computer has all the needed [requirements](https://rust-lang.github.io/rust-bindgen/requirements.html) to use [bindgen](https://github.com/rust-lang/rust-bindgen). -Download and install the [steamworks sdk](https://partner.steamgames.com/doc/sdk) and set the environment variable `STEAM_SDK_LOCATION` to point to it. +Download and install the [steamworks sdk](https://partner.steamgames.com/doc/sdk) and set the environment variable `STEAM_SDK_LOCATION` to point to it. This is currently built against steamworks v151. ## Example ```rust 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 Friend { /// Returns a small (32x32) avatar for the user in RGBA format pub fn small_avatar(&self) -> Option> { 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 Friend { /// Returns a medium (64x64) avatar for the user in RGBA format pub fn medium_avatar(&self) -> Option> { 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; diff --git a/src/lib.rs b/src/lib.rs index e5c69b6..837c162 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -206,7 +206,7 @@ impl Client { /// Returns an accessor to the steam utils interface pub fn utils(&self) -> Utils { 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 Client { /// Returns an accessor to the steam user interface pub fn user(&self) -> User { 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 Client { /// Returns an accessor to the steam user stats interface pub fn user_stats(&self) -> UserStats { 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 Client { 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 Client { /// Returns an accessor to the steam UGC interface (steam workshop) pub fn ugc(&self) -> UGC { unsafe { - let ugc = sys::SteamAPI_SteamUGC_v014(); + let ugc = sys::SteamAPI_SteamUGC_v015(); debug_assert!(!ugc.is_null()); UGC { ugc, diff --git a/src/ugc.rs b/src/ugc.rs index e680601..ade8a12 100644 --- a/src/ugc.rs +++ b/src/ugc.rs @@ -663,7 +663,7 @@ impl UserListQuery { register_call_result::( &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)); diff --git a/steamworks-sys/src/bindings.rs b/steamworks-sys/src/bindings.rs index af2b8b2..a89ee73 100644 --- a/steamworks-sys/src/bindings.rs +++ b/steamworks-sys/src/bindings.rs @@ -23031,7 +23031,7 @@ extern "C" { ) -> *mut ISteamRemotePlay; } extern "C" { - pub fn SteamAPI_SteamUser_v020() -> *mut ISteamUser; + pub fn SteamAPI_SteamUser_v021() -> *mut ISteamUser; } extern "C" { pub fn SteamAPI_ISteamUser_GetHSteamUser(self_: *mut ISteamUser) -> HSteamUser; @@ -23674,7 +23674,7 @@ extern "C" { ); } extern "C" { - pub fn SteamAPI_SteamUtils_v009() -> *mut ISteamUtils; + pub fn SteamAPI_SteamUtils_v010() -> *mut ISteamUtils; } extern "C" { pub fn SteamAPI_SteamGameServerUtils_v009() -> *mut ISteamUtils; @@ -24895,7 +24895,7 @@ extern "C" { ) -> SteamAPICall_t; } extern "C" { - pub fn SteamAPI_SteamUserStats_v011() -> *mut ISteamUserStats; + pub fn SteamAPI_SteamUserStats_v012() -> *mut ISteamUserStats; } extern "C" { pub fn SteamAPI_ISteamUserStats_RequestCurrentStats(self_: *mut ISteamUserStats) -> bool; @@ -26426,7 +26426,7 @@ extern "C" { ) -> bool; } extern "C" { - pub fn SteamAPI_SteamUGC_v014() -> *mut ISteamUGC; + pub fn SteamAPI_SteamUGC_v015() -> *mut ISteamUGC; } extern "C" { pub fn SteamAPI_SteamGameServerUGC_v014() -> *mut ISteamUGC; -- cgit v1.2.3