From 402a71dc22cfaea32bb0c867812d7ee1763b99c5 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 21 Mar 2023 08:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=80=BB=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E7=9A=84log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/open_agb_firm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 9857251..a4071ba 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -145,6 +145,7 @@ Result dump_rom( u32 size ) u8 *p = ROM_LOC; u32 len; + ee_printf("dumping into dump.gba, file size %d\n", size); for( u8 *p=ROM_LOC; size > 0; size-=len, p+=len ) { res = fWrite( file, p, size < 256 ? size : 256, &len ); @@ -157,8 +158,8 @@ Result dump_rom( u32 size ) if( res != RES_OK) break; - if( ((u32)p-ROM_LOC) % (1024*128) == 0) - ee_printf("\x1b[2;1Hremain %d bytes to save.\n", size); + if( ((u32)p-ROM_LOC) % (1024*64) == 0) + ee_printf("\x1b[3;1Hremaining %d bytes to dump.\n", size); } } fClose( file );