mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 22:04:10 +08:00
去掉日志
This commit is contained in:
parent
3473dd2008
commit
ed0aa3aea9
@ -392,15 +392,17 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut)
|
|||||||
fClose(f);
|
fClose(f);
|
||||||
|
|
||||||
// use the gbaatm cheat
|
// use the gbaatm cheat
|
||||||
|
if( g_oafConfig.cheatMode != CHEAT_MODE_DISABLED )
|
||||||
|
{
|
||||||
char gamecode[5];
|
char gamecode[5];
|
||||||
memcpy( gamecode, ROM_LOC+0xac, 4 );
|
memcpy( gamecode, ROM_LOC+0xac, 4 );
|
||||||
gamecode[4] = '\0';
|
gamecode[4] = '\0';
|
||||||
debug_printf( "open res:%d\n", acl_open_lib( "gba.acl" ));
|
acl_open_lib( "gba.acl" );
|
||||||
debug_printf(" select res:%d\n", acl_select_game( gamecode, 0, NULL ));
|
acl_select_game( gamecode, 0, NULL );
|
||||||
int err = apply_cheat( g_oafConfig.cheatMode, fileSize, g_oafConfig.cheatKeys, CHEAT_INUSE_ADDR, &fileSize );
|
apply_cheat( g_oafConfig.cheatMode, fileSize, g_oafConfig.cheatKeys, CHEAT_INUSE_ADDR, &fileSize );
|
||||||
debug_printf("cheat res: %s => %d\n", gamecode, err);
|
|
||||||
acl_close_lib();
|
acl_close_lib();
|
||||||
fini_current_cheat();
|
fini_current_cheat();
|
||||||
|
}
|
||||||
|
|
||||||
*romSizeOut = fixRomPadding(fileSize);
|
*romSizeOut = fixRomPadding(fileSize);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user