From 39a9eb5ccb550aac49f05f297fdc0168547a1139 Mon Sep 17 00:00:00 2001 From: Aurora Date: Thu, 24 Mar 2016 17:05:19 +0100 Subject: [PATCH] Explicitly block Safe Mode access on A9LH Prevents bricking --- source/firm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/firm.c b/source/firm.c index 1e37521..5d91973 100755 --- a/source/firm.c +++ b/source/firm.c @@ -79,7 +79,10 @@ void setupCFW(void){ /* If L and one of the payload buttons are pressed, and if not using A9LH the Safe Mode combo is not pressed, chainload an external payload */ if((pressed & BUTTON_L1) && (pressed & PAYLOAD_BUTTONS) && - !(!a9lhSetup && pressed == SAFE_MODE)) loadPayload(); + pressed != SAFE_MODE) loadPayload(); + + if(a9lhSetup && pressed == SAFE_MODE) + error("Using Safe Mode would brick you, or remove A9LH!"); //If no configuration file exists or SELECT is held, load configuration menu if(needConfig == 2 || (pressed & BUTTON_SELECT))