This commit is contained in:
anod 2023-03-11 22:34:14 +08:00
parent dcffa0940a
commit 7263280725
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ acl_error_t acl_select_game( acl_text_t game, acl_boolean_t filter, acl_count_t
CheatLib *inst = (CheatLib*)&gblcht;
FHandle fd;
if( inst->serc == 0 ) return ACHTLIB_NOT_OPEN;
if( strlen(game) != ACL_GBA_CODELEN ) return ACHTLIB_NOT_FOUND;log("open fild");
if( strlen(game) != ACL_GBA_CODELEN ) return ACHTLIB_NOT_FOUND;log("open file");
if( RES_OK != fOpen(&fd, inst->aclfile, FA_OPEN_EXISTING | FA_READ) )
return ACHTLIB_INVALID;
log("search");

View File

@ -497,7 +497,7 @@ 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");