From: chaoskagami Date: Thu, 16 Jun 2016 23:30:51 +0000 (-0400) Subject: Okay, that's wrong technically, the disk starts on sector 0 so subtract one X-Git-Tag: v0.1.0~7 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=40821ea1a6cac7896fdf33b14e4d4181b339e425;p=corbenik%2Fcorbenik.git Okay, that's wrong technically, the disk starts on sector 0 so subtract one --- diff --git a/source/patch/emunand.c b/source/patch/emunand.c index 75aed8b..65601f1 100644 --- a/source/patch/emunand.c +++ b/source/patch/emunand.c @@ -46,7 +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; + offset = ( getMMCDevice(1)->total_size - 1) - offset; } // Check for RedNAND/Normal physical layout on SD