Skip to content

Commit

Permalink
Send client version on login + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
RubberDuckShobe committed Feb 28, 2024
1 parent 3274509 commit 1af5229
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wavebreaker_client"
version = "3.0.0"
version = "3.1.0"
edition = "2021"

[lib]
Expand Down
18 changes: 17 additions & 1 deletion src/hooking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,23 @@ unsafe fn send_hook(
debug!("Ticket found in data: {:?}", ticket);
}

if url.ends_with("/as_steamlogin/game_fetchsongid_unicode.php") && global_data.ticket.is_some() {
if url.ends_with("/as_steamlogin/game_AttemptLoginSteamVerified.php") {
data.set_one("wvbrclientversion", env!("CARGO_PKG_VERSION"));
let new_data_string = data.to_string_of_original_order();

// allocate new string
let new_data = malloc_c_string(&new_data_string) as *mut c_void;
return call_original!(
hrequest,
headers,
headers_len,
new_data,
new_data_string.len() as u32
);
}

if url.ends_with("/as_steamlogin/game_fetchsongid_unicode.php") && global_data.ticket.is_some()
{
data.set_one("ticket", global_data.ticket.as_ref().unwrap());
let new_data_string = data.to_string_of_original_order();

Expand Down

0 comments on commit 1af5229

Please sign in to comment.