File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " wavebreaker_client"
3- version = " 3.0 .0"
3+ version = " 3.1 .0"
44edition = " 2021"
55
66[lib ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments