mirror of
https://github.com/a2x/cs2-dumper.git
synced 2026-04-17 22:59:59 +08:00
Improve schema parsing
This commit is contained in:
@@ -128,13 +128,13 @@ pub fn offsets(process: &mut IntoProcessInstanceArcBox<'_>) -> Result<OffsetMap>
|
||||
("matchmaking.dll", matchmaking::offsets),
|
||||
];
|
||||
|
||||
for (module_name, callback) in &modules {
|
||||
for (module_name, offsets) in &modules {
|
||||
let module = process.module_by_name(module_name)?;
|
||||
let buf = process.read_raw(module.base, module.size as _)?;
|
||||
|
||||
let view = PeView::from_bytes(&buf)?;
|
||||
|
||||
map.insert(module_name.to_string(), callback(view));
|
||||
map.insert(module_name.to_string(), offsets(view));
|
||||
}
|
||||
|
||||
Ok(map)
|
||||
|
||||
Reference in New Issue
Block a user