根据返回位置写入日志测试

This commit is contained in:
anod 2023-01-18 15:52:15 +08:00
parent 7d074b8f5e
commit e4cc944139

View File

@ -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) )
{
RECOVER_PATH;
serial[4] = '1';
fsQuickWrite("serial.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_noserial );
}
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;
if( RES_OK != acl_open_lib( "gba.acl" ) )
{
serial[4] = '2';
fsQuickWrite("serial.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_openlib );
}
if( RES_OK != acl_select_game( serial, 0, &len ) )
{
acl_close_lib();
serial[4] = '3';
fsQuickWrite("serial.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_selcht );
}
if( len == 0 )
{
atp_tips( "", NULL );
acl_close_lib();
serial[5] = 'a'+len;
serial[4] = '4';
fsQuickWrite("serial.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_nocheat );
}