From a2f51eeb159a281790a5932c6d20ff39af265c58 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Sat, 11 Mar 2023 22:23:51 +0800 Subject: [PATCH] log --- source/arm11/acl.c | 4 +++- source/arm11/filebrowser.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/arm11/acl.c b/source/arm11/acl.c index 5f1c6c8..7330942 100644 --- a/source/arm11/acl.c +++ b/source/arm11/acl.c @@ -179,13 +179,15 @@ static int32_t bin_search( FHandle fd, acl_text_t game ) #define config_type(n) ( (n) & 0xff ) acl_error_t acl_select_game( acl_text_t game, acl_boolean_t filter, acl_count_t *n ) { + extern void log( const char * ); CheatLib *inst = (CheatLib*)&gblcht; FHandle fd; + log( game ); if( inst->serc == 0 ) return ACHTLIB_NOT_OPEN; if( strlen(game) != ACL_GBA_CODELEN ) return ACHTLIB_NOT_FOUND; if( RES_OK != fOpen(&fd, inst->aclfile, FA_OPEN_EXISTING | FA_READ) ) return ACHTLIB_INVALID; - +log("search"); int32_t index = bin_search( fd, game ); if( index < 0 ) { diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index 5c0f7e8..51ef99d 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -240,6 +240,7 @@ static atp_error_t disp_str( atp_callerdata_t data, atp_counter_t, atp_linecfg_t cfg->text = (atp_text_t)data; return ATP_SUCCESS; } +void log( const char *p ) { atp_show(1, disp_str, p); } static atp_error_t select_region( atp_callerdata_t, atp_counter_t index, atp_itemcfg_t *config ) { @@ -497,13 +498,11 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a { return WAIT_ON_ERRPAGE( display_openlib ); } - atp_show(1, disp_str, "open lib done"); if( ACHTLIB_SUCCESS != acl_select_game( serial, 0, &len ) ) { acl_close_lib(); return WAIT_ON_ERRPAGE( display_selcht ); } - atp_show(1, disp_str, "done select game"); if( len == 0 ) { acl_close_lib();