忘记记上select_game了

This commit is contained in:
anod 2023-03-07 18:28:37 +08:00
parent a4df7db8be
commit 5c199413cb

View File

@ -395,6 +395,7 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut)
memcpy( gamecode, ROM_LOC+0xac, 4 );
gamecode[4] = '\0';
acl_open_lib( "gba.acl" );
acl_select_game( gamecode, 0, NULL );
int err = apply_cheat( g_oafConfig.cheatMode, fileSize, g_oafConfig.cheatKeys, CHEAT_INUSE_ADDR, &fileSize );
debug_printf("cheat res: %d\n", err);
acl_close_lib();