Skip to content

Commit 1af5229

Browse files
Send client version on login + bump version
1 parent 3274509 commit 1af5229

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "wavebreaker_client"
3-
version = "3.0.0"
3+
version = "3.1.0"
44
edition = "2021"
55

66
[lib]

src/hooking.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,23 @@ unsafe fn send_hook(
137137
debug!("Ticket found in data: {:?}", ticket);
138138
}
139139

140-
if url.ends_with("/as_steamlogin/game_fetchsongid_unicode.php") && global_data.ticket.is_some() {
140+
if url.ends_with("/as_steamlogin/game_AttemptLoginSteamVerified.php") {
141+
data.set_one("wvbrclientversion", env!("CARGO_PKG_VERSION"));
142+
let new_data_string = data.to_string_of_original_order();
143+
144+
// allocate new string
145+
let new_data = malloc_c_string(&new_data_string) as *mut c_void;
146+
return call_original!(
147+
hrequest,
148+
headers,
149+
headers_len,
150+
new_data,
151+
new_data_string.len() as u32
152+
);
153+
}
154+
155+
if url.ends_with("/as_steamlogin/game_fetchsongid_unicode.php") && global_data.ticket.is_some()
156+
{
141157
data.set_one("ticket", global_data.ticket.as_ref().unwrap());
142158
let new_data_string = data.to_string_of_original_order();
143159

0 commit comments

Comments
 (0)