From d51839920d851eebb2d9a7c4428743731be69343 Mon Sep 17 00:00:00 2001 From: PieKing1215 Date: Sun, 25 Aug 2024 04:40:14 -0400 Subject: [PATCH] Fix dev mode injection ignoring default value --- src/tweaks/dev_mode.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tweaks/dev_mode.rs b/src/tweaks/dev_mode.rs index 4b65487..5a87690 100644 --- a/src/tweaks/dev_mode.rs +++ b/src/tweaks/dev_mode.rs @@ -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 }) }