From: chaoskagami Date: Thu, 16 Jun 2016 22:04:15 +0000 (-0400) Subject: Implement reverse emunand. This is untested (but will be soon after manual injection) X-Git-Tag: v0.1.0~9 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=0898f96a3846be90a3a22f853912830eca5ab2ab;p=corbenik%2Fcorbenik.git Implement reverse emunand. This is untested (but will be soon after manual injection) --- diff --git a/source/patch/emunand.c b/source/patch/emunand.c index fc796da..75aed8b 100644 --- a/source/patch/emunand.c +++ b/source/patch/emunand.c @@ -46,6 +46,7 @@ verify_emunand(uint32_t index, uint32_t *off, uint32_t *head) if (config.options[OPTION_EMUNAND_REVERSE]) { // Subtract offset from back of disk. + offset = getMMCDevice(1)->total_size - offset; } // Check for RedNAND/Normal physical layout on SD