hackfix dsp reset: fixes zelda collector's edition and some other games which reset and hang (...are there any others?)

the problem was that the streaming audio interrupts were still being triggered, causing the game to try and jump to an invalid interrupt handler. The code for dsp lle looks like a hack :( (but it works)

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6163 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman committed 2010-09-02 01:36:45 +00:00
1 parent 9220ca1afc
commit baf82a0849
2 files changed
+18 -3

No files matched your search

+7
View File
@@ -387,6 +387,13 @@ void Write16(const u16 _Value, const u32 _Address)
tmpControl.Hex = (_Value & ~DSP_CONTROL_MASK) |
(dsp_plugin->DSP_WriteControlRegister(_Value) & DSP_CONTROL_MASK);
// HACK for DSPReset: do it instantaneously
if (_Value & 1)
{
Shutdown();
Init();
}
// Update DSP related flags
g_dspState.DSPControl.DSPReset = tmpControl.DSPReset;
g_dspState.DSPControl.DSPAssertInt = tmpControl.DSPAssertInt;