Convert Chip4864 to not use SyncObject
This commit is contained in:
parent
1fab08f91c
commit
0eeee952c5
|
@ -300,7 +300,10 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
|||
Pla.SyncState(ser);
|
||||
ser.EndSection();
|
||||
|
||||
ser.BeginSection("Ram"); SaveState.SyncObject(ser, Ram); ser.EndSection();
|
||||
ser.BeginSection("Ram");
|
||||
Ram.SyncState(ser);
|
||||
ser.EndSection();
|
||||
|
||||
ser.BeginSection("Sid"); SaveState.SyncObject(ser, Sid); ser.EndSection();
|
||||
ser.BeginSection("Vic"); SaveState.SyncObject(ser, Vic); ser.EndSection();
|
||||
ser.BeginSection("CartPort"); SaveState.SyncObject(ser, CartPort); ser.EndSection(); // TODO: only if cart
|
||||
|
|
|
@ -47,7 +47,7 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
|
|||
|
||||
public void SyncState(Serializer ser)
|
||||
{
|
||||
SaveState.SyncObject(ser, this);
|
||||
ser.Sync("_ram", ref _ram, useNull: false);
|
||||
}
|
||||
|
||||
public void Write(int addr, int val)
|
||||
|
|
Loading…
Reference in New Issue