Skip to content

Commit

Permalink
Merge pull request #148 from ai-zen/master
Browse files Browse the repository at this point in the history
fix: Change `SteamAPI_SteamUGC_v016` to `SteamAPI_SteamUGC_v017`
  • Loading branch information
kristoff3r authored Dec 18, 2023
2 parents ce20641 + e1f47da commit f00f309
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,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_v016();
let ugc = sys::SteamAPI_SteamUGC_v017();
debug_assert!(!ugc.is_null());
UGC {
ugc,
Expand Down
6 changes: 3 additions & 3 deletions src/ugc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ impl<Manager> UserListQuery<Manager> {
api_call,
CALLBACK_BASE_ID + 1,
move |v, io_error| {
let ugc = sys::SteamAPI_SteamUGC_v016();
let ugc = sys::SteamAPI_SteamUGC_v017();
if io_error {
sys::SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(ugc, handle);
cb(Err(SteamError::IOFailure));
Expand Down Expand Up @@ -1237,7 +1237,7 @@ impl<Manager> ItemListDetailsQuery<Manager> {
api_call,
CALLBACK_BASE_ID + 1,
move |v, io_error| {
let ugc = sys::SteamAPI_SteamUGC_v016();
let ugc = sys::SteamAPI_SteamUGC_v017();
if io_error {
sys::SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(ugc, handle);
cb(Err(SteamError::IOFailure));
Expand Down Expand Up @@ -1385,7 +1385,7 @@ impl<Manager> ItemDetailsQuery<Manager> {
api_call,
CALLBACK_BASE_ID + 1,
move |v, io_error| {
let ugc = sys::SteamAPI_SteamUGC_v016();
let ugc = sys::SteamAPI_SteamUGC_v017();
if io_error {
sys::SteamAPI_ISteamUGC_ReleaseQueryUGCRequest(ugc, handle);
cb(Err(SteamError::IOFailure));
Expand Down
2 changes: 1 addition & 1 deletion steamworks-sys/src/linux_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28166,7 +28166,7 @@ extern "C" {
) -> bool;
}
extern "C" {
pub fn SteamAPI_SteamUGC_v016() -> *mut ISteamUGC;
pub fn SteamAPI_SteamUGC_v017() -> *mut ISteamUGC;
}
extern "C" {
pub fn SteamAPI_SteamGameServerUGC_v017() -> *mut ISteamUGC;
Expand Down
2 changes: 1 addition & 1 deletion steamworks-sys/src/macos_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28201,7 +28201,7 @@ extern "C" {
) -> bool;
}
extern "C" {
pub fn SteamAPI_SteamUGC_v016() -> *mut ISteamUGC;
pub fn SteamAPI_SteamUGC_v017() -> *mut ISteamUGC;
}
extern "C" {
pub fn SteamAPI_SteamGameServerUGC_v017() -> *mut ISteamUGC;
Expand Down
2 changes: 1 addition & 1 deletion steamworks-sys/src/windows_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29466,7 +29466,7 @@ extern "C" {
) -> bool;
}
extern "C" {
pub fn SteamAPI_SteamUGC_v016() -> *mut ISteamUGC;
pub fn SteamAPI_SteamUGC_v017() -> *mut ISteamUGC;
}
extern "C" {
pub fn SteamAPI_SteamGameServerUGC_v017() -> *mut ISteamUGC;
Expand Down

0 comments on commit f00f309

Please sign in to comment.