From 8aa7f28660a16630c976dc4731aa7c8f25245e4d Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Wed, 8 Mar 2023 15:37:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=9C=89=E5=8F=A6=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=9C=B0=E6=96=B9=E9=9C=80=E8=A6=81=E4=BF=AE=E5=A4=8D=E7=9A=84?= =?UTF-8?q?=EF=BC=8C=E5=B7=B2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/cheat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/arm11/cheat.c b/source/arm11/cheat.c index fc94959..7a4a327 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -305,7 +305,7 @@ static int cht_calc_needsize( int mode, int numirq ) } } - return total + 1; + return total + sizeof(instruction_t); } static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsize, u32 *newsize )