From aff8565d19a969cd81bf6d10001b234386f6fa72 Mon Sep 17 00:00:00 2001 From: Logan McNaughton Date: Sat, 12 Jun 2021 09:14:43 -0600 Subject: [PATCH] update core --- mupen64plus-core/src/device/rcp/pi/pi_controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mupen64plus-core/src/device/rcp/pi/pi_controller.c b/mupen64plus-core/src/device/rcp/pi/pi_controller.c index 60ccaa5..6004a84 100644 --- a/mupen64plus-core/src/device/rcp/pi/pi_controller.c +++ b/mupen64plus-core/src/device/rcp/pi/pi_controller.c @@ -59,7 +59,7 @@ static void dma_pi_read(struct pi_controller* pi) const uint8_t* dram = (uint8_t*)pi->ri->rdram->dram; if ((length & 0x1) && length >= 0x7F) - length +=1; + length += 1; if (dram_addr & 0x7) length -= dram_addr & 0x7; @@ -99,7 +99,7 @@ static void dma_pi_write(struct pi_controller* pi) uint8_t* dram = (uint8_t*)pi->ri->rdram->dram; if ((length & 0x1) && length >= 0x7F) - length +=1; + length += 1; if (dram_addr & 0x7) length -= dram_addr & 0x7;