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