From 5d9796757f7ee599a50afbd21eb378517480fba4 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:26:13 +0300 Subject: [PATCH] Fix unlock --- main.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/main.c b/main.c index 14a2cf6..671b75b 100644 --- a/main.c +++ b/main.c @@ -1687,6 +1687,7 @@ int main() drawLogo(); + backupNVM(); checkUnsupportedVersion(); checkFMCB(); @@ -1697,6 +1698,7 @@ int main() if (!IsNVMUnlocked()) { rerun = 1; + unlockNVM(); } else { @@ -1728,11 +1730,6 @@ int main() { if (getMechaBuildDate(build_date) && IsKnownconsole) { - if (!isPatchAlreadyInstalled()) - { - if (backupNVM()) - unlockNVM(); - } char isDex = 0; setRegion(&isDex); applyPatches(isDex); @@ -1746,11 +1743,6 @@ int main() } else if (selected == 1) { - if (!isPatchAlreadyInstalled()) - { - if (backupNVM()) - unlockNVM(); - } restoreBackup(); } }