mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
log
This commit is contained in:
parent
f64a27e6ed
commit
d79f7e7e0f
@ -1,4 +1,5 @@
|
|||||||
#include "arm11/acl.h"
|
#include "arm11/acl.h"
|
||||||
|
#include "arm11/fmt.h"
|
||||||
#include "fs.h"
|
#include "fs.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -183,10 +184,10 @@ acl_error_t acl_select_game( acl_text_t game, acl_boolean_t filter, acl_count_t
|
|||||||
CheatLib *inst = (CheatLib*)&gblcht;
|
CheatLib *inst = (CheatLib*)&gblcht;
|
||||||
FHandle fd;
|
FHandle fd;
|
||||||
if( inst->serc == 0 ) return ACHTLIB_NOT_OPEN;
|
if( inst->serc == 0 ) return ACHTLIB_NOT_OPEN;
|
||||||
if( strlen(game) != ACL_GBA_CODELEN ) return ACHTLIB_NOT_FOUND;log(inst->aclfile);
|
if( strlen(game) != ACL_GBA_CODELEN ) return ACHTLIB_NOT_FOUND;
|
||||||
if( RES_OK != fOpen(&fd, inst->aclfile, FA_OPEN_EXISTING | FA_READ) )
|
if( RES_OK != fOpen(&fd, inst->aclfile, FA_OPEN_EXISTING | FA_READ) )
|
||||||
return ACHTLIB_INVALID;
|
return ACHTLIB_INVALID;
|
||||||
log("search");
|
ee_printf("\x1b[2Jsearch\n");
|
||||||
int32_t index = bin_search( fd, game );
|
int32_t index = bin_search( fd, game );
|
||||||
if( index < 0 )
|
if( index < 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user