mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-11-10 11:10:01 +08:00
Replace process.read_ptr usage with ptr.read
This commit is contained in:
@@ -56,8 +56,8 @@ fn read_interfaces(
|
||||
let mut reg_ptr = Pointer64::<InterfaceReg>::from(process.read_addr64(list_addr)?);
|
||||
|
||||
while !reg_ptr.is_null() {
|
||||
let reg = process.read_ptr(reg_ptr)?;
|
||||
let name = process.read_char_string(reg.name.address())?;
|
||||
let reg = reg_ptr.read(process)?;
|
||||
let name = reg.name.read_string(process)?.to_string();
|
||||
|
||||
let value = (reg.create_fn - module.base) as u32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user