mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
ad5d7376d0
commit
9906e82efc
|
@ -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
|
||||
|
|
|
@ -184,6 +184,9 @@ void SaveStateBase::FreezeRegisters()
|
|||
// Fifth Block - iop-related systems
|
||||
// ---------------------------------
|
||||
FreezeTag( "IOP-Subsystems" );
|
||||
#ifdef ENABLE_NEW_IOPDMA
|
||||
iopDmacFreeze();
|
||||
#endif
|
||||
psxRcntFreeze();
|
||||
sioFreeze();
|
||||
sio2Freeze();
|
||||
|
|
|
@ -201,6 +201,9 @@ protected:
|
|||
void vuMicroFreeze();
|
||||
void vif0Freeze();
|
||||
void vif1Freeze();
|
||||
#ifdef ENABLE_NEW_IOPDMA
|
||||
void iopDmacFreeze();
|
||||
#endif
|
||||
void sifFreeze();
|
||||
void ipuFreeze();
|
||||
void gifFreeze();
|
||||
|
|
Loading…
Reference in New Issue