C64 - refactor Chip2114 to not use SyncObject

This commit is contained in:
adelikat 2017-05-13 07:56:32 -05:00
parent 1c8cc06a02
commit 5897721637
2 changed files with 9 additions and 3 deletions

View File

@ -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();

View File

@ -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)