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
This commit is contained in:
ramapcsx2 2011-08-29 11:09:26 +00:00
parent 8ceda3b102
commit a2e5c497aa
1 changed files with 8 additions and 0 deletions

View File

@ -239,6 +239,14 @@ void __fastcall _hwWrite8(u32 mem, u8 value)
} }
return; 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<page,false>(mem & ~0x03); u32 merged = _hwRead32<page,false>(mem & ~0x03);
((u8*)&merged)[mem & 0x3] = value; ((u8*)&merged)[mem & 0x3] = value;