Skip to content

Commit

Permalink
Fix dev mode injection ignoring default value
Browse files Browse the repository at this point in the history
  • Loading branch information
PieKing1215 committed Aug 25, 2024
1 parent 82db058 commit d518399
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tweaks/dev_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ impl DevModeTweak {
// replace the JZ with JNZ
let inject = vec![0x75];
let mut dev_mode_injection = Injection::new(dev_mode_addr + 4, inject);
dev_mode_injection.inject();

if DEFAULT_DEV_MODE {
dev_mode_injection.inject();
}

Ok(Self { dev_mode: DEFAULT_DEV_MODE, dev_mode_injection })
}
Expand Down

0 comments on commit d518399

Please sign in to comment.