From dd81d731e41c0e287aa0ca949583eb7b5b38e446 Mon Sep 17 00:00:00 2001 From: smurf3tte <75271109+smurf3tte@users.noreply.github.com> Date: Fri, 23 Sep 2022 21:44:08 -0700 Subject: [PATCH] GameSettings: Add patch for Dead to Rights audio This game follows the anti-pattern of calling memset on a buffer in the midst of being DMA copied to ARAM, then calling a DVD read function that effectively cancels the memset with dcbi instructions. Dolphin does not emulate dcache for performance reasons, so this patch removes the offending memset call. Patches are included for two regions and are enabled by default. https://bugs.dolphin-emu.org/issues/12759 --- Data/Sys/GameSettings/GDREAF.ini | 11 +++++++++++ Data/Sys/GameSettings/GDRP69.ini | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Data/Sys/GameSettings/GDREAF.ini create mode 100644 Data/Sys/GameSettings/GDRP69.ini diff --git a/Data/Sys/GameSettings/GDREAF.ini b/Data/Sys/GameSettings/GDREAF.ini new file mode 100644 index 0000000000..9f98d82fd0 --- /dev/null +++ b/Data/Sys/GameSettings/GDREAF.ini @@ -0,0 +1,11 @@ +# GDREAF - Dead to Rights + +[OnFrame] +# This game follows the anti-pattern of calling memset on a buffer in the midst +# of being DMA copied to ARAM, then calling a DVD read function that effectively +# cancels the memset with dcbi instructions. Dolphin does not emulate dcache for +# performance reasons, so this patch removes the offending memset call. +$Fix audio issues +0x8000AF34:dword:0x60000000 +[OnFrame_Enabled] +$Fix audio issues diff --git a/Data/Sys/GameSettings/GDRP69.ini b/Data/Sys/GameSettings/GDRP69.ini new file mode 100644 index 0000000000..ae3fc95a2f --- /dev/null +++ b/Data/Sys/GameSettings/GDRP69.ini @@ -0,0 +1,11 @@ +# GDRP69 - Dead to Rights + +[OnFrame] +# This game follows the anti-pattern of calling memset on a buffer in the midst +# of being DMA copied to ARAM, then calling a DVD read function that effectively +# cancels the memset with dcbi instructions. Dolphin does not emulate dcache for +# performance reasons, so this patch removes the offending memset call. +$Fix audio issues +0x8000B7EC:dword:0x60000000 +[OnFrame_Enabled] +$Fix audio issues