diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c093be..782a88a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: - uses: actions-rs/cargo@v1 with: command: build + args: --all env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-C debuginfo=0" \ No newline at end of file diff --git a/examples/chat-example/src/main.rs b/examples/chat-example/src/main.rs index 9f0d1c2..d17c888 100644 --- a/examples/chat-example/src/main.rs +++ b/examples/chat-example/src/main.rs @@ -39,7 +39,7 @@ fn window_conf() -> Conf { #[macroquad::main(window_conf)] async fn main() { - let (client, single) = Client::init().unwrap(); + let client = Client::init().unwrap(); let matchmaking = client.matchmaking(); let networking = client.networking(); @@ -65,7 +65,7 @@ async fn main() { let mut messages: Vec = vec![]; loop { - single.run_callbacks(); + client.run_callbacks(); clear_background(BLACK); let local_sender_create_lobby = sender_create_lobby.clone(); diff --git a/examples/lobby/src/main.rs b/examples/lobby/src/main.rs index 2a91b07..cae8842 100644 --- a/examples/lobby/src/main.rs +++ b/examples/lobby/src/main.rs @@ -3,7 +3,7 @@ use std::sync::mpsc; use steamworks::*; fn main() { - let (client, single) = Client::init().unwrap(); + let client = Client::init().unwrap(); let matchmaking = client.matchmaking(); @@ -24,7 +24,7 @@ fn main() { }); loop { - single.run_callbacks(); + client.run_callbacks(); if let Ok(lobby_id) = receiver_create_lobby.try_recv() { println!("Sending message to lobby chat..."); diff --git a/examples/workshop/src/main.rs b/examples/workshop/src/main.rs index 7710832..877f2b3 100644 --- a/examples/workshop/src/main.rs +++ b/examples/workshop/src/main.rs @@ -103,7 +103,10 @@ fn delete_item(ugc: &UGC, published_id: PublishedFileId) { fn main() { // create a client pair - let (client, single) = Client::init().expect("Steam is not running or has not been detected"); + let client = Client::init().expect("Steam is not running or has not been detected"); + + // get a handle to Steam's UGC module (user-generated content) + let ugc = client.ugc(); // create a channel to communicate with the upcoming callback thread // this is technically not *needed* but it is cleaner in order to properly exit the thread @@ -113,7 +116,7 @@ fn main() { let callback_thread = std::thread::spawn(move || { loop { // run callbacks - single.run_callbacks(); + client.run_callbacks(); std::thread::sleep(std::time::Duration::from_millis(100)); // check if the channel is closed or if there is a message @@ -125,8 +128,6 @@ fn main() { } }); - // get a handle to Steam's UGC module (user-generated content) - let ugc = client.ugc(); create_item(&ugc); // only do this once you received a successful callback for creating the item, else this WILL fail!