From 7f8380e2ba1b1243f075f7c1a2c30fda56fbb706 Mon Sep 17 00:00:00 2001 From: cottonvibes Date: Fri, 10 Oct 2008 00:00:43 +0000 Subject: [PATCH] this should fix Dark Cloud 2. please comment if it does/doesn't work :p git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@185 a6443dda-0b58-4228-96e9-037be469359c --- pcsx2/Hw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/Hw.h b/pcsx2/Hw.h index 3efb630702..2030b9b974 100644 --- a/pcsx2/Hw.h +++ b/pcsx2/Hw.h @@ -319,7 +319,7 @@ extern __forceinline u8* dmaGetAddr(u32 mem) if( (mem&0xffff0000) == 0x50000000 ) {// reserved scratch pad mem SysPrintf("dmaGetAddr: reserved scratch pad mem\n"); - return (u8*)&PS2MEM_SCRATCH[(mem) & 0x3ff0]; + return NULL;//(u8*)&PS2MEM_SCRATCH[(mem) & 0x3ff0]; } p = (u8*)dmaGetAddrBase(mem); @@ -329,7 +329,7 @@ extern __forceinline u8* dmaGetAddr(u32 mem) // linux doesn't suffer from this because it has better vm support if( memLUT[ (p-PS2MEM_BASE)>>12 ].aPFNs == NULL ) { SysPrintf("dmaGetAddr: memLUT PFN warning\n"); - return p; + return NULL;//p; } pbase = (u8*)memLUT[ (p-PS2MEM_BASE)>>12 ].aVFNs[0];