mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-08 06:44:12 +08:00
根据返回位置写入日志测试
This commit is contained in:
parent
7d074b8f5e
commit
e4cc944139
@ -306,6 +306,8 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
|
|||||||
if( RES_OK != rom_get_serial(path, serial) )
|
if( RES_OK != rom_get_serial(path, serial) )
|
||||||
{
|
{
|
||||||
RECOVER_PATH;
|
RECOVER_PATH;
|
||||||
|
serial[4] = '1';
|
||||||
|
fsQuickWrite("serial.txt", serial, 5);
|
||||||
return WAIT_ON_ERRPAGE( display_noserial );
|
return WAIT_ON_ERRPAGE( display_noserial );
|
||||||
}
|
}
|
||||||
else RECOVER_PATH;
|
else RECOVER_PATH;
|
||||||
@ -313,18 +315,22 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
|
|||||||
acl_count_t len;
|
acl_count_t len;
|
||||||
if( RES_OK != acl_open_lib( "gba.acl" ) )
|
if( RES_OK != acl_open_lib( "gba.acl" ) )
|
||||||
{
|
{
|
||||||
|
serial[4] = '2';
|
||||||
|
fsQuickWrite("serial.txt", serial, 5);
|
||||||
return WAIT_ON_ERRPAGE( display_openlib );
|
return WAIT_ON_ERRPAGE( display_openlib );
|
||||||
}
|
}
|
||||||
if( RES_OK != acl_select_game( serial, 0, &len ) )
|
if( RES_OK != acl_select_game( serial, 0, &len ) )
|
||||||
{
|
{
|
||||||
acl_close_lib();
|
acl_close_lib();
|
||||||
|
serial[4] = '3';
|
||||||
|
fsQuickWrite("serial.txt", serial, 5);
|
||||||
return WAIT_ON_ERRPAGE( display_selcht );
|
return WAIT_ON_ERRPAGE( display_selcht );
|
||||||
}
|
}
|
||||||
if( len == 0 )
|
if( len == 0 )
|
||||||
{
|
{
|
||||||
atp_tips( "", NULL );
|
atp_tips( "", NULL );
|
||||||
acl_close_lib();
|
acl_close_lib();
|
||||||
serial[5] = 'a'+len;
|
serial[4] = '4';
|
||||||
fsQuickWrite("serial.txt", serial, 5);
|
fsQuickWrite("serial.txt", serial, 5);
|
||||||
return WAIT_ON_ERRPAGE( display_nocheat );
|
return WAIT_ON_ERRPAGE( display_nocheat );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user