From e4cc944139720f071c24dd9795f8a089f82e9390 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 18 Jan 2023 15:52:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E8=BF=94=E5=9B=9E=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=86=99=E5=85=A5=E6=97=A5=E5=BF=97=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/filebrowser.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index c5593d8..8276b91 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -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 ); }