fixed memory editor triggering reset

This commit is contained in:
contact@brokestudio.fr 2023-08-06 16:31:58 +02:00
parent 04866122c5
commit 875c0d99bc
1 changed files with 8 additions and 5 deletions

View File

@ -575,13 +575,16 @@ static DECLFR(RNBW_0x4011Rd) {
} }
static DECLFR(RNBW_RstPowRd) { static DECLFR(RNBW_RstPowRd) {
if (fceuindbg == 0)
{
if (A == 0xFFFC) reset_step = 1; if (A == 0xFFFC) reset_step = 1;
else if (A == 0xFFFD & reset_step == 1) else if ((A == 0xFFFD) & (reset_step == 1))
{ {
Rainbow2Reset(); Rainbow2Reset();
reset_step = 0; reset_step = 0;
} }
else reset_step = 0; else reset_step = 0;
}
return CartBR(A); return CartBR(A);
} }