From 305648f02f84499159f72e17a7e12efb885c039d Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 17 Oct 2022 08:53:41 +1030 Subject: [PATCH] Core: Do not allow byte aligned blocks after the first block --- .../N64System/MemoryHandler/PeripheralInterfaceHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Project64-core/N64System/MemoryHandler/PeripheralInterfaceHandler.cpp b/Source/Project64-core/N64System/MemoryHandler/PeripheralInterfaceHandler.cpp index eba1ef206..19821db03 100644 --- a/Source/Project64-core/N64System/MemoryHandler/PeripheralInterfaceHandler.cpp +++ b/Source/Project64-core/N64System/MemoryHandler/PeripheralInterfaceHandler.cpp @@ -414,6 +414,10 @@ void PeripheralInterfaceHandler::PI_DMA_WRITE() BlockLen = 0; } } + else + { + BlockLen = ReadLen; + } for (int32_t i = 0; i < BlockLen; i++) {