From ee1b82ae8e2914a8b3ef581548a3040de9ad6814 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Sat, 11 Mar 2023 15:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index 2a63bfd..3f964dd 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -62,7 +62,6 @@ cheat_error_t overwrite_current_cheat( acl_entryid_t id, u16 value ) if( setting.chtId == 0 ) return CCHT_NOT_INIT; u16 index = ENT_HOLE(id); - u16 option = ENT_KEY(id); if( index == 0 ) return CCHT_INVALID; if( index <= setting.entLen ) @@ -436,7 +435,7 @@ static void rom_append_cheatproc( int mode, CodeLocation start, u16 bindkey, u32 { if( (j < 4) && (j & 1) ) { - u8 *p = start++; + u8 *p = (u8*)start++; acl_entry_get_armcode(j, (u32*)p); *p = j>1 ? val >> 8 : val & 0xff; }