mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
添加一点点日志
This commit is contained in:
parent
c0a3eb2893
commit
4c2bb66572
@ -147,13 +147,16 @@ Result dump_rom( u32 size )
|
|||||||
u32 len;
|
u32 len;
|
||||||
for( u8 *p=ROM_LOC; size > 0; size-=len, p+=len )
|
for( u8 *p=ROM_LOC; size > 0; size-=len, p+=len )
|
||||||
{
|
{
|
||||||
res = fWrite( file, p, 512, &len );
|
res = fWrite( file, p, 256, &len );
|
||||||
if( res != RES_OK )
|
if( res != RES_OK )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
res = fSync( file );
|
res = fSync( file );
|
||||||
if( res != RES_OK)
|
if( res != RES_OK)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if( (p-ROM_LOC) % 4096 == 0)
|
||||||
|
ee_printf("remain %d bytes to save.\n")
|
||||||
}
|
}
|
||||||
fClose( file );
|
fClose( file );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user