From 93fce2dab6660236e3fae973806fb82ece533cf4 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Thu, 9 Mar 2023 20:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=BC=E5=B0=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=BD=B1=E5=93=8D?= 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 b6a7562..e028620 100644 --- a/source/arm11/cheat.c +++ b/source/arm11/cheat.c @@ -352,7 +352,7 @@ static CodeLocation rom_fit_newsize( CodeLocation rom, int realend, int totalsiz else if( nextPow2(size) != nextPow2(szrom) ) { // 似乎没什么要动的 - *newsize = size + 1; // reserve a word for padding + *newsize = size + INSTR_SIZE; // reserve a word for padding return rom + INSTR_LEN( realend ); }