mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
添加总大小的log
This commit is contained in:
parent
de72fcf224
commit
402a71dc22
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user