From 53b7c6858f205fdf04d7a1c49c349920a3762bff Mon Sep 17 00:00:00 2001 From: iojon <> Date: Thu, 7 Jan 2021 05:37:17 -0500 Subject: [PATCH] Fix modlunky2 compatability? --- crates/injected/src/search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/injected/src/search.rs b/crates/injected/src/search.rs index 341c0993e..1ff174737 100644 --- a/crates/injected/src/search.rs +++ b/crates/injected/src/search.rs @@ -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 {