From e8665227b591c99cebccabb2fa6c6d62534fcb3a Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Wed, 13 Feb 2013 20:21:22 +0000 Subject: Only do 0x401 when BCR = 0. Should prevent graphic glitches introduced by Vampire Hunter D fix. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82876 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/psxhw.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/psxhw.c b/libpcsxcore/psxhw.c index f119d6fa..53df663d 100755 --- a/libpcsxcore/psxhw.c +++ b/libpcsxcore/psxhw.c @@ -500,26 +500,15 @@ void psxHwWrite16(u32 add, u16 value) { #endif } -#define DmaExec(n) { \ - HW_DMA##n##_CHCR = SWAPu32(value); \ -\ - if (SWAPu32(HW_DMA##n##_CHCR) & 0x01000000 && SWAPu32(HW_DMA_PCR) & (8 << (n * 4))) { \ - psxDma##n(SWAPu32(HW_DMA##n##_MADR), SWAPu32(HW_DMA##n##_BCR), SWAPu32(HW_DMA##n##_CHCR)); \ - } \ -} - -#if 0 -// Failed with: Lode Runner, Tales Of Phantasy. #define DmaExec(n) { \ HW_DMA##n##_CHCR = SWAPu32(value); \ \ if ((SWAPu32(HW_DMA##n##_CHCR) & 0x01000000 || \ - (n == 2 && SWAPu32(HW_DMA##n##_CHCR) == 0x0401)) /* Vampire Hunter D */ && \ + (n == 2 && SWAPu32(HW_DMA##n##_CHCR) == 0x0401 && SWAPu32(HW_DMA##n##_BCR) == 0x0)) /* Vampire Hunter D */ && \ SWAPu32(HW_DMA_PCR) & (8 << (n * 4))) { \ psxDma##n(SWAPu32(HW_DMA##n##_MADR), SWAPu32(HW_DMA##n##_BCR), SWAPu32(HW_DMA##n##_CHCR)); \ } \ } -#endif void psxHwWrite32(u32 add, u32 value) { switch (add) { -- cgit v1.2.3