From 076ddaa0b78fa56737dbbb8ac69c1fd7a1139d41 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Wed, 2 Dec 2020 23:52:48 -0700 Subject: [PATCH] Show NAND sectors written --- arm9/source/arm9.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arm9/source/arm9.c b/arm9/source/arm9.c index 08f21c0..8d9bf8e 100644 --- a/arm9/source/arm9.c +++ b/arm9/source/arm9.c @@ -156,7 +156,7 @@ int restoreNAND(nocash_footer_t *footer){ } int fail=0; - bool nandWritten = false; + int sectorsWritten=0; FILE *f = fopen("nand.bin", "rb"); if(!f) death("Could not open nand file"); @@ -174,10 +174,11 @@ int restoreNAND(nocash_footer_t *footer){ iprintf("Restoring... \n"); iprintf("Do not turn off the power.\n"); - iprintf("Progress: 0%% \r"); + iprintf("Progress: 0%% Sectors written: 0\r"); + int i2=0; for(int i=0;i