From b844e91b18977248069b0e8bf75b8226938c36c5 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 18 Jan 2023 17:08:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=B5=8B=E8=AF=95=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/filebrowser.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index 54b5aae..4485d6b 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -320,28 +320,21 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a else RECOVER_PATH; acl_count_t len; - if( RES_OK != acl_open_lib( "gba.acl" ) ) + if( ACHTLIB_SUCCESS != acl_open_lib( "gba.acl" ) ) { serial[4] = '2'; fsQuickWrite("log.txt", serial, 5); return WAIT_ON_ERRPAGE( display_openlib ); } - if( RES_OK != acl_select_game( serial, 0, &len ) ) + if( ACHTLIB_SUCCESS != acl_select_game( serial, 0, &len ) ) { acl_close_lib(); serial[4] = '3'; fsQuickWrite("log.txt", serial, 5); return WAIT_ON_ERRPAGE( display_selcht ); } - if( len == 0 ) - { - acl_close_lib(); - serial[4] = '4'; - fsQuickWrite("log.txt", serial, 5); - return WAIT_ON_ERRPAGE( display_nocheat ); - } - //fsQuickWrite("log.txt", serial, 4); + fsQuickWrite("log.txt", serial, 4); // 显示配置页面 atp_error_t res;