换个名字看看有没有输出日志

This commit is contained in:
anod 2023-01-18 16:05:47 +08:00
parent bba6664788
commit 7b53dc939b

View File

@ -290,12 +290,12 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
if( pathlen + filelen > DIRBUFFSIZE - 1)
{
fsQuickWrite("serial.txt", "00", 2);
fsQuickWrite("log.txt", "00", 2);
return WAIT_ON_ERRPAGE( display_toolong );
}
else if( ENT_TYPE_DIR == dList->ptrs[index][0] )
{
fsQuickWrite("serial.txt", "11", 2);
fsQuickWrite("log.txt", "11", 2);
return WAIT_ON_ERRPAGE( display_empty );
}
@ -309,7 +309,7 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
{
RECOVER_PATH;
serial[4] = '1';
fsQuickWrite("serial.txt", serial, 5);
fsQuickWrite("log.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_noserial );
}
else RECOVER_PATH;
@ -318,14 +318,14 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
if( RES_OK != acl_open_lib( "gba.acl" ) )
{
serial[4] = '2';
fsQuickWrite("serial.txt", serial, 5);
fsQuickWrite("log.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);
fsQuickWrite("log.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_selcht );
}
if( len == 0 )
@ -333,11 +333,11 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
atp_tips( "", NULL );
acl_close_lib();
serial[4] = '4';
fsQuickWrite("serial.txt", serial, 5);
fsQuickWrite("log.txt", serial, 5);
return WAIT_ON_ERRPAGE( display_nocheat );
}
fsQuickWrite("serial.txt", serial, 4);
fsQuickWrite("log.txt", serial, 4);
// 显示配置页面
atp_error_t res;