From 1a22fcc81630167a089927337781eb2596488d3f Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 7 Mar 2023 18:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 3 --- source/arm11/open_agb_firm.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index d9a9c54..e717a29 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -411,10 +411,7 @@ cheat_error_t apply_cheat( int mode, u32 szrom, u16 bindkey, u32 storagemem, u32 if( mode == CHEAT_MODE_DISABLED ) return CCHT_OK; if( setting.chtId == 0 ) return CCHT_OK; if( ACHTLIB_SUCCESS != acl_select_cheat_set( setting.chtId ) ) - { - debug_printf("select_cheat_set res=%d", acl_select_cheat_set(setting.chtId)); return CCHT_NO_CHEAT; - } CodeLocation romdata = ROM_LOC; int realend = end_of_rom(romdata, szrom); diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 9e11e01..cc2fe6b 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -394,8 +394,8 @@ static Result loadGbaRom(const char *const path, u32 *const romSizeOut) char gamecode[5]; memcpy( gamecode, ROM_LOC+0xac, 4 ); gamecode[4] = '\0'; - acl_open_lib( "gba.acl" ); - acl_select_game( gamecode, 0, NULL ); + debug_printf( "open res:%d\n", acl_open_lib( "gba.acl" )); + debug_printf(" select res:%d\n", 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: %s => %d\n", gamecode, err); acl_close_lib();