diff --git a/source/arm11/acl.c b/source/arm11/acl.c index e7af554..9313a34 100644 --- a/source/arm11/acl.c +++ b/source/arm11/acl.c @@ -157,7 +157,7 @@ static int32_t bin_search( FHandle fd, acl_text_t game ) int start = 0, end = gblcht.serc - 1; size = ACL_SERIAL_LEN(1); - int found = -1; log("1"); + int found = -1; while( start <= end ) { int mid = (start+end) >> 1; @@ -172,8 +172,8 @@ static int32_t bin_search( FHandle fd, acl_text_t game ) start = mid + 1; } else end = mid - 1; - }log("4"); - free( serials ); + }log("1"); + free( serials );log("2"); return found < 0 ? -ACHTLIB_NOT_FOUND : found; } @@ -181,6 +181,7 @@ 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; if( inst->serc == 0 ) return ACHTLIB_NOT_OPEN; @@ -194,10 +195,10 @@ acl_error_t acl_select_game( acl_text_t game, acl_boolean_t filter, acl_count_t fClose( fd ); return index * -1; } - +log("3"); uint32_t offset = ACL_HEADER_LEN + ACL_SERIAL_LEN(inst->serc); offset += ACL_INDEX_OFFSET(index); - +log("4"); uint32_t readed; uint16_t groups[2]; if( RES_OK != fLseek(fd, offset) )