mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-18 22:53:16 +00:00
Make newer steam api unnecessary.
This commit is contained in:
parent
6d6bcc9ea7
commit
16694a0921
5 changed files with 5 additions and 13 deletions
11
noita-proxy/Cargo.lock
generated
11
noita-proxy/Cargo.lock
generated
|
@ -2326,12 +2326,6 @@ dependencies = [
|
||||||
"windows-targets 0.52.6",
|
"windows-targets 0.52.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "paste"
|
|
||||||
version = "1.0.15"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pbkdf2"
|
name = "pbkdf2"
|
||||||
version = "0.12.2"
|
version = "0.12.2"
|
||||||
|
@ -3211,11 +3205,10 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "steamworks"
|
name = "steamworks"
|
||||||
version = "0.11.0"
|
version = "0.11.0"
|
||||||
source = "git+https://github.com/IntQuant/steamworks-rs#d765c925e2c481a3e6eb3ecdff12e09dcd618f26"
|
source = "git+https://github.com/IntQuant/steamworks-rs?branch=avatar-fix#56c1d4cf9aab3639b3f14daeafa6a32ae8f169ef"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.3.2",
|
"bitflags 1.3.2",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"paste",
|
|
||||||
"steamworks-sys",
|
"steamworks-sys",
|
||||||
"thiserror",
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
@ -3223,7 +3216,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "steamworks-sys"
|
name = "steamworks-sys"
|
||||||
version = "0.11.0"
|
version = "0.11.0"
|
||||||
source = "git+https://github.com/IntQuant/steamworks-rs#d765c925e2c481a3e6eb3ecdff12e09dcd618f26"
|
source = "git+https://github.com/IntQuant/steamworks-rs?branch=avatar-fix#56c1d4cf9aab3639b3f14daeafa6a32ae8f169ef"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "strict-num"
|
name = "strict-num"
|
||||||
|
|
|
@ -25,7 +25,7 @@ serde = { version = "1.0.207", features = ["serde_derive", "derive"] }
|
||||||
bitcode = "0.6.0"
|
bitcode = "0.6.0"
|
||||||
lz4_flex = { version = "0.11.3", default-features = false, features = ["std"]}
|
lz4_flex = { version = "0.11.3", default-features = false, features = ["std"]}
|
||||||
rand = "0.8.5"
|
rand = "0.8.5"
|
||||||
steamworks = { git = "https://github.com/IntQuant/steamworks-rs" }
|
steamworks = { git = "https://github.com/IntQuant/steamworks-rs", branch = "avatar-fix" }
|
||||||
crossbeam = { version = "0.8.4", features = ["crossbeam-channel"] }
|
crossbeam = { version = "0.8.4", features = ["crossbeam-channel"] }
|
||||||
clipboard = "0.5.0"
|
clipboard = "0.5.0"
|
||||||
socket2 = { version = "0.5.7", features = ["all"] }
|
socket2 = { version = "0.5.7", features = ["all"] }
|
||||||
|
|
|
@ -37,16 +37,15 @@ impl SteamState {
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
let app_id = env::var("NP_APPID").ok().and_then(|x| x.parse().ok());
|
let app_id = env::var("NP_APPID").ok().and_then(|x| x.parse().ok());
|
||||||
let client = steamworks::Client::init_app(app_id.unwrap_or(881100))?;
|
let (client, single) = steamworks::Client::init_app(app_id.unwrap_or(881100))?;
|
||||||
client.networking_utils().init_relay_network_access();
|
client.networking_utils().init_relay_network_access();
|
||||||
if let Err(err) = client.networking_sockets().init_authentication() {
|
if let Err(err) = client.networking_sockets().init_authentication() {
|
||||||
error!("Failed to init_authentication: {}", err)
|
error!("Failed to init_authentication: {}", err)
|
||||||
}
|
}
|
||||||
let client_c = client.clone();
|
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
info!("Spawned steam callback thread");
|
info!("Spawned steam callback thread");
|
||||||
loop {
|
loop {
|
||||||
client_c.run_callbacks();
|
single.run_callbacks();
|
||||||
thread::sleep(Duration::from_millis(3));
|
thread::sleep(Duration::from_millis(3));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue