From 0488ade1dc51ad27c2238af306b0ef84dadb85bd Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Mon, 4 Nov 2024 20:46:48 +0000 Subject: [PATCH] DSPHLE/AXWii: fix Elebits sound Regressed in 37ebb13ece712d6f129bbceb73d9ec99028beaef. --- Source/Core/Core/HW/DSPHLE/UCodes/AXWii.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/AXWii.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/AXWii.cpp index 356136bb52..04dee941ca 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/AXWii.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/AXWii.cpp @@ -418,7 +418,7 @@ void AXWiiUCode::WritePB(Memory::MemoryManager& memory, u32 addr, const AXPBWii& case 0xadbc06bd: memory.CopyToEmuSwapped(addr, (const u16*)src, updates_begin); memory.CopyToEmuSwapped(addr + updates_begin, (const u16*)(src + updates_end), - sizeof(PBUpdatesWii)); + gap_begin - updates_end); memory.CopyToEmuSwapped(addr + gap_begin, (const u16*)(src + gap_end), sizeof(pb) - gap_end); break;