Skip to content

Commit

Permalink
Downgrade to Steamworks 1.50 for February gmod patch
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamVenner committed Feb 2, 2022
1 parent 9338401 commit 7e7cebd
Show file tree
Hide file tree
Showing 6 changed files with 1,030 additions and 1,917 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gmsv_workshop"
version = "2.2.0"
version = "2.2.1"
edition = "2021"
authors = ["William Venner <[email protected]>"]
publish = false
Expand Down
12 changes: 12 additions & 0 deletions steamworks-rs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![allow(unused)]
#![feature(hash_drain_filter)]

/*
#[macro_export]
#[cfg(target_pointer_width = "64")]
macro_rules! sys_ugc {
Expand All @@ -24,6 +25,17 @@ macro_rules! sys_ugc {
macro_rules! sys_gameserver {
() => { $crate::sys::SteamAPI_SteamGameServer_v014() }
}
*/

#[macro_export]
macro_rules! sys_ugc {
() => { $crate::sys::SteamAPI_SteamGameServerUGC_v014() }
}

#[macro_export]
macro_rules! sys_gameserver {
() => { $crate::sys::SteamAPI_SteamGameServer_v013() }
}

#[macro_use]
extern crate thiserror;
Expand Down
4 changes: 4 additions & 0 deletions steamworks-rs/steamworks-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {

let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());

/*
let sdk_loc = if build_cfg!(target_pointer_width = "32") {
"../../lib/steamworks_153a"
} else if build_cfg!(target_pointer_width = "64") {
"../../lib/steamworks_150"
} else {
unimplemented!()
};
*/

let sdk_loc = "../../lib/steamworks_150";

let sdk_loc = Path::new(&sdk_loc);
println!("cargo:rerun-if-env-changed=STEAM_SDK_LOCATION");
Expand Down
2 changes: 1 addition & 1 deletion steamworks-rs/steamworks-sys/src/bindings_linux32.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 7e7cebd

Please sign in to comment.