修复release编译红屏的问题

This commit is contained in:
anod 2023-03-09 18:44:17 +08:00
parent 7942225edc
commit 778c9c71e7

View File

@ -397,7 +397,7 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut)
fClose(f);
// use the gbaatm cheat
if( g_oafConfig.cheatMode != CHEAT_MODE_DISABLED )
if( g_oafConfig.cheatMode != CHEAT_MODE_DISABLED && info_current_cheat(NULL, NULL) != CCHT_NOT_INIT )
{
char gamecode[5];
memcpy( gamecode, ROM_LOC+0xac, 4 );