From 048c74086956b4dca24b4389fece0772f8d11906 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 7 Mar 2023 18:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E5=A2=9E=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 1 + source/arm11/open_agb_firm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index e717a29..425e223 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -410,6 +410,7 @@ cheat_error_t apply_cheat( int mode, u32 szrom, u16 bindkey, u32 storagemem, u32 // try ignore patch if( mode == CHEAT_MODE_DISABLED ) return CCHT_OK; if( setting.chtId == 0 ) return CCHT_OK; + debug_printf( "see the cheat id: %08x", setting.chtId ); if( ACHTLIB_SUCCESS != acl_select_cheat_set( setting.chtId ) ) return CCHT_NO_CHEAT; diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index a824484..9e11e01 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -397,7 +397,7 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut) 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); + debug_printf("cheat res: %s => %d\n", gamecode, err); acl_close_lib(); fini_current_cheat(); *romSizeOut = fixRomPadding(fileSize);