This commit is contained in:
anod 2023-03-11 22:27:52 +08:00
parent a2f51eeb15
commit 3e9c21b605
2 changed files with 3 additions and 3 deletions

View File

@ -182,7 +182,6 @@ acl_error_t acl_select_game( acl_text_t game, acl_boolean_t filter, acl_count_t
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) )

View File

@ -497,12 +497,13 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
if( ACHTLIB_SUCCESS != acl_open_lib( "gba.acl" ) )
{
return WAIT_ON_ERRPAGE( display_openlib );
}
}log("open lib success");
if( ACHTLIB_SUCCESS != acl_select_game( serial, 0, &len ) )
{
log("select game failed");
acl_close_lib();
return WAIT_ON_ERRPAGE( display_selcht );
}
}log("select game done");
if( len == 0 )
{
acl_close_lib();