dsphle - lets save some vars for ax/axwii and mailqueue - should improve savestates and fix issue 4542

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7570 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Marko Pusljar 2011-05-29 14:08:54 +00:00
parent 5224a5a007
commit 75ec10b0be
4 changed files with 27 additions and 0 deletions

View File

@ -454,3 +454,16 @@ bool CUCode_AX::AXTask(u32& _uMail)
m_rMailHandler.PushMail(DSP_YIELD);
return true;
}
void CUCode_AX::DoState(PointerWrap &p)
{
std::lock_guard<std::mutex> lk(m_csMix);
p.Do(_CRC);
p.Do(numPBaddr);
p.Do(m_addressPBs);
p.Do(PBaddr);
p.Do(m_UploadSetupInProgress);
m_rMailHandler.DoState(p);
}

View File

@ -35,6 +35,7 @@ public:
void HandleMail(u32 _uMail);
void MixAdd(short* _pBuffer, int _iSize);
void Update(int cycles);
void DoState(PointerWrap &p);
// PBs
u8 numPBaddr;

View File

@ -255,3 +255,15 @@ bool CUCode_AXWii::AXTask(u32& _uMail)
m_rMailHandler.PushMail(DSP_YIELD); //its here in case there is a CMD fuckup
return true;
}
void CUCode_AXWii::DoState(PointerWrap &p)
{
std::lock_guard<std::mutex> lk(m_csMix);
p.Do(_CRC);
p.Do(m_addressPBs);
p.Do(wiisportsHack);
p.Do(m_UploadSetupInProgress);
m_rMailHandler.DoState(p);
}

View File

@ -31,6 +31,7 @@ public:
void HandleMail(u32 _uMail);
void MixAdd(short* _pBuffer, int _iSize);
void Update(int cycles);
void DoState(PointerWrap &p);
private:
enum