From e197604d197750855e8c4efc615c900ca31d0bfe Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 2 Feb 2017 18:55:33 +0100 Subject: [PATCH] Fix secret sector restore --- source/common/common.h | 2 +- source/installer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/common.h b/source/common/common.h index e43785f..e4e6f07 100644 --- a/source/common/common.h +++ b/source/common/common.h @@ -38,7 +38,7 @@ (((v) % (a)) ? ((v) + (a) - ((v) % (a))) : (v)) // SafeSigHaxInstaller version -#define VERSION "0.0.1" +#define VERSION "0.0.2" // input / output paths #define INPUT_PATH "0:/sighax" diff --git a/source/installer.c b/source/installer.c index 06b8173..6a7c73f 100644 --- a/source/installer.c +++ b/source/installer.c @@ -256,7 +256,7 @@ u32 SafeSigHaxInstaller(void) { if (CheckA9lh()) { snprintf(msgInstall, 64, "0x96 revert..."); ShowInstallerStatus(); - ret = SafeWriteNand(secret_sector, 0x96, 0x200, 0x06); + ret = SafeWriteNand(secret_sector, 0x96 * 0x200, 0x200, 0x11); if (ret == 0) snprintf(msgA9lh, 64, "uninstalled"); } } while (false);