C64 - refactor Chip2114 to not use SyncObject
This commit is contained in:
parent
1c8cc06a02
commit
5897721637
|
@ -286,8 +286,14 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
||||||
Cia0.SyncState(ser);
|
Cia0.SyncState(ser);
|
||||||
ser.EndSection();
|
ser.EndSection();
|
||||||
|
|
||||||
ser.BeginSection("Cia1"); SaveState.SyncObject(ser, Cia1); ser.EndSection();
|
ser.BeginSection("Cia1");
|
||||||
ser.BeginSection("ColorRam"); SaveState.SyncObject(ser, ColorRam); ser.EndSection();
|
Cia1.SyncState(ser);
|
||||||
|
ser.EndSection();
|
||||||
|
|
||||||
|
ser.BeginSection("ColorRam");
|
||||||
|
ColorRam.SyncState(ser);
|
||||||
|
ser.EndSection();
|
||||||
|
|
||||||
ser.BeginSection("Cpu"); SaveState.SyncObject(ser, Cpu); ser.EndSection();
|
ser.BeginSection("Cpu"); SaveState.SyncObject(ser, Cpu); ser.EndSection();
|
||||||
ser.BeginSection("KernalRom"); SaveState.SyncObject(ser, KernalRom); ser.EndSection();
|
ser.BeginSection("KernalRom"); SaveState.SyncObject(ser, KernalRom); ser.EndSection();
|
||||||
ser.BeginSection("Pla"); SaveState.SyncObject(ser, Pla); ser.EndSection();
|
ser.BeginSection("Pla"); SaveState.SyncObject(ser, Pla); ser.EndSection();
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
|
||||||
|
|
||||||
public void SyncState(Serializer ser)
|
public void SyncState(Serializer ser)
|
||||||
{
|
{
|
||||||
SaveState.SyncObject(ser, this);
|
ser.Sync("_ram", ref _ram, useNull: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Write(int addr, int val)
|
public void Write(int addr, int val)
|
||||||
|
|
Loading…
Reference in New Issue