New IOPDMAC:

- Add basic savestate support

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2583 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2 2010-02-10 15:49:35 +00:00
parent ad5d7376d0
commit 9906e82efc
3 changed files with 17 additions and 0 deletions

View File

@ -574,5 +574,16 @@ s32 CALLBACK errDmaWrite(s32 channel, u32* data, u32 bytesLeft, u32* bytesProces
return 0;
}
void SaveStateBase::iopDmacFreeze()
{
FreezeTag("iopDmac");
Freeze(IopDmaChannels);
if( IsLoading() )
{
SetDmaUpdateTarget(10000); // Might be needed to kickstart the main updater :p
}
}
#endif

View File

@ -184,6 +184,9 @@ void SaveStateBase::FreezeRegisters()
// Fifth Block - iop-related systems
// ---------------------------------
FreezeTag( "IOP-Subsystems" );
#ifdef ENABLE_NEW_IOPDMA
iopDmacFreeze();
#endif
psxRcntFreeze();
sioFreeze();
sio2Freeze();

View File

@ -201,6 +201,9 @@ protected:
void vuMicroFreeze();
void vif0Freeze();
void vif1Freeze();
#ifdef ENABLE_NEW_IOPDMA
void iopDmacFreeze();
#endif
void sifFreeze();
void ipuFreeze();
void gifFreeze();