diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 5c01feb..1fe9679 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -391,7 +391,7 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut) ptr += 0x100000u; // use the gbaatm cheat - apply_cheat( CHEAT_MODE_ENABYKEY, fileSize, 900, CHEAT_INUSE_ADDR, &fileSize ); + apply_cheat( g_oafConfig.cheatMode, fileSize, g_oafConfig.cheatKeys, CHEAT_INUSE_ADDR, &fileSize ); *romSizeOut = fixRomPadding(fileSize); } else res = RES_ROM_TOO_BIG;