mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 15:19:42 -06:00
Quick fix to get Zelda: Wind Waker booting again.
This commit is contained in:
@ -112,16 +112,23 @@ u8 *CUCode_Zelda::GetARAMPointer(u32 address)
|
|||||||
|
|
||||||
void CUCode_Zelda::Update(int cycles)
|
void CUCode_Zelda::Update(int cycles)
|
||||||
{
|
{
|
||||||
if (!IsLightVersion())
|
m_cycles += cycles;
|
||||||
{
|
|
||||||
if (m_rMailHandler.GetNextMail() == DSP_FRAME_END)
|
|
||||||
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (NeedsResumeMail())
|
if (m_cycles >= 243000)
|
||||||
{
|
{
|
||||||
m_rMailHandler.PushMail(DSP_RESUME);
|
m_cycles = 0;
|
||||||
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
|
||||||
|
if (!IsLightVersion())
|
||||||
|
{
|
||||||
|
if (m_rMailHandler.GetNextMail() == DSP_FRAME_END)
|
||||||
|
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NeedsResumeMail())
|
||||||
|
{
|
||||||
|
m_rMailHandler.PushMail(DSP_RESUME);
|
||||||
|
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +218,6 @@ private:
|
|||||||
s32* m_LeftBuffer;
|
s32* m_LeftBuffer;
|
||||||
s32* m_RightBuffer;
|
s32* m_RightBuffer;
|
||||||
|
|
||||||
|
|
||||||
// If you add variables, remember to keep DoState() and the constructor up to date.
|
// If you add variables, remember to keep DoState() and the constructor up to date.
|
||||||
|
|
||||||
s16 m_AFCCoefTable[32];
|
s16 m_AFCCoefTable[32];
|
||||||
@ -276,6 +275,8 @@ private:
|
|||||||
u32 m_PBAddress; // The main param block array
|
u32 m_PBAddress; // The main param block array
|
||||||
u32 m_PBAddress2; // 4 smaller param blocks
|
u32 m_PBAddress2; // 4 smaller param blocks
|
||||||
|
|
||||||
|
u32 m_cycles;
|
||||||
|
|
||||||
void ExecuteList();
|
void ExecuteList();
|
||||||
|
|
||||||
u8 *GetARAMPointer(u32 address);
|
u8 *GetARAMPointer(u32 address);
|
||||||
|
Reference in New Issue
Block a user