Skip to content

Commit

Permalink
Fix modlunky2 compatability?
Browse files Browse the repository at this point in the history
  • Loading branch information
iojon committed Jan 7, 2021
1 parent ded1433 commit 53b7c68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/injected/src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ pub fn find_after_bundle(exe: &[u8]) -> usize {
}
offset += (8 + l0 + l1) as usize;
}
offset

find_inst(exe, &[0x48, 0x81, 0xEC, 0xE8, 0x00, 0x00, 0x00], offset)
}

pub fn find_inst(exe: &[u8], needle: &[u8], start: usize) -> usize {
Expand Down

0 comments on commit 53b7c68

Please sign in to comment.