From a2e5c497aae6e3c7cf11233b481e423b614ff6c8 Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Mon, 29 Aug 2011 11:09:26 +0000 Subject: [PATCH] Fixed Virtual on Marz (or Mars) which does an 8 bit DMAC_STAT write. This broke in r3705, which handles the write instead of ignoring it. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4882 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/HwWrite.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pcsx2/HwWrite.cpp b/pcsx2/HwWrite.cpp index 08317d393c..4d7d4acce9 100644 --- a/pcsx2/HwWrite.cpp +++ b/pcsx2/HwWrite.cpp @@ -239,6 +239,14 @@ void __fastcall _hwWrite8(u32 mem, u8 value) } return; } + icase(DMAC_STAT) // Virtual on Marz sound effect hang. Broke in r3705 (handled in r3704 HwWrite.cpp line 352) + { + static bool warnedOnce = false; + if (!warnedOnce) + DevCon.Warning ( "8bit DMAC_STAT write, ignoring" ); + warnedOnce = true; + return; // r3704 ignored 8 bit DMAC_STAT writes. Is that okay? (rama) + } u32 merged = _hwRead32(mem & ~0x03); ((u8*)&merged)[mem & 0x3] = value;