This commit is contained in:
a2x 2023-12-14 11:16:28 +10:00
parent e178b41cdf
commit 5c0e0dc831
1 changed files with 3 additions and 3 deletions

View File

@ -360,7 +360,7 @@ mod tests {
sleep(Duration::from_secs(1));
// See https://www.unknowncheats.me/forum/3855779-post889.html for button codes.
println!("INSERT down: {}", is_key_down(73));
println!("INSERT key down: {}", is_key_down(73));
Ok(())
}
@ -445,10 +445,10 @@ mod tests {
.base();
let window_width_offset = get_offset_value("engine2.dll", "dwWindowWidth")
.expect("Failed to find dwLocalPlayerPawn offset");
.expect("Failed to find dwWindowWidth offset");
let window_height_offset = get_offset_value("engine2.dll", "dwWindowHeight")
.expect("Failed to find dwLocalPlayerPawn offset");
.expect("Failed to find dwWindowHeight offset");
let window_width =
process.read_memory::<u32>(engine_base + window_width_offset as usize)?;