mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 14:24:12 +08:00
修复release编译红屏的问题
This commit is contained in:
parent
7942225edc
commit
778c9c71e7
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user