]> Chaos Git - corbenik/corbenik.git/commitdiff
Implement reverse emunand. This is untested (but will be soon after manual injection)
authorchaoskagami <chaos.kagami@gmail.com>
Thu, 16 Jun 2016 22:04:15 +0000 (18:04 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Thu, 16 Jun 2016 22:04:15 +0000 (18:04 -0400)
source/patch/emunand.c

index fc796da897ea850a0ffa263d0d3e0e466152edc2..75aed8bda842ae83d3d0b34c2b07cbbadf8a1fbf 100644 (file)
@@ -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