From cc98a5a5654f7a0e2c2469b7d614e7f688763873 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 7 Mar 2023 18:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index 3214a72..a4e775b 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -6,8 +6,6 @@ #include #include -#include - typedef u32 instruction_t; typedef instruction_t* CodeLocation; #define CodeAtLocation(p) (*(p)) @@ -433,6 +431,6 @@ cheat_error_t apply_cheat( int mode, u32 szrom, u16 bindkey, u32 storagemem, u32 rom_append_newirq( page, hookpoint, n_hookpoint ); rom_patch_hookpoint( page, hookpoint, n_hookpoint ); rom_append_cheatproc( mode, page + n_hookpoint * IW_INSTR_LEN, GBA_KEYCODE(bindkey), storagemem ); - debug_printf( "patch: mode=%d,size=%d,hp=%d,key=%d", mode, *outsize, n_hookpoint, bindkey ); + debug_printf( "patch: mode=%d,size=%ld,hp=%d,key=%d", mode, *outsize, n_hookpoint, bindkey ); return CCHT_OK; } \ No newline at end of file