savestate shito: fix compile errors.

still far from being finished, so avoid using unless you want to spawn blackholes or some pretty bad shit.
This commit is contained in:
StapleButter
2018-10-18 00:27:55 +02:00
parent 7cbcc6c230
commit de91eabf71
8 changed files with 20 additions and 20 deletions

View File

@ -118,7 +118,7 @@ void DMA::Reset()
InProgress = false;
}
void DMA::Savestate(Savestate* file)
void DMA::DoSavestate(Savestate* file)
{
char* magic = "DMAx";
magic[3] = '0' + Num + (CPU*4);
@ -136,9 +136,9 @@ void DMA::Savestate(Savestate* file)
file->Var32(&SrcAddrInc);
file->Var32(&DstAddrInc);
file->Var32(&(u32)Running);
file->Var32(&(u32)InProgress);
file->Var32(&(u32)IsGXFIFODMA);
file->Var32((u32*)&Running);
file->Var32((u32*)&InProgress);
file->Var32((u32*)&IsGXFIFODMA);
}
void DMA::WriteCnt(u32 val)