C64 - Convert Chip90611401 to not use SyncObject

This commit is contained in:
adelikat 2017-05-13 08:36:52 -05:00
parent 9effe326ad
commit 1fab08f91c
2 changed files with 18 additions and 2 deletions

View File

@ -296,7 +296,10 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
Cpu.SyncState(ser);
ser.EndSection();
ser.BeginSection("Pla"); SaveState.SyncObject(ser, Pla); ser.EndSection();
ser.BeginSection("Pla");
Pla.SyncState(ser);
ser.EndSection();
ser.BeginSection("Ram"); SaveState.SyncObject(ser, Ram); ser.EndSection();
ser.BeginSection("Sid"); SaveState.SyncObject(ser, Sid); ser.EndSection();
ser.BeginSection("Vic"); SaveState.SyncObject(ser, Vic); ser.EndSection();

View File

@ -282,7 +282,20 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
public void SyncState(Serializer ser)
{
SaveState.SyncObject(ser, this);
ser.Sync("_p24", ref _p24);
ser.Sync("_p25", ref _p25);
ser.Sync("_p26", ref _p26);
ser.Sync("_p27", ref _p27);
ser.Sync("_p28", ref _p28);
ser.Sync("_loram", ref _loram);
ser.Sync("_hiram", ref _hiram);
ser.Sync("_game", ref _game);
ser.Sync("_exrom", ref _exrom);
ser.Sync("_charen", ref _charen);
ser.Sync("_a15", ref _a15);
ser.Sync("_a14", ref _a14);
ser.Sync("_a13", ref _a13);
ser.Sync("_a12", ref _a12);
}
public int VicRead(int addr)