fix a7800hawk text savestates

This commit is contained in:
adelikat 2020-02-16 12:51:55 -06:00
parent 027dc01c8b
commit aa6654cf9d
2 changed files with 9 additions and 2 deletions

View File

@ -6,14 +6,17 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
private void SyncState(Serializer ser)
{
ser.BeginSection("Atari7800");
cpu.SyncState(ser);
tia.SyncState(ser);
maria.SyncState(ser);
m6532.SyncState(ser);
ser.BeginSection("Mapper");
mapper.SyncState(ser);
ser.EndSection();
pokey.SyncState(ser);
ser.BeginSection("Atari7800");
ser.Sync("Lag", ref _lagCount);
ser.Sync("Frame", ref _frame);
ser.Sync("IsLag", ref _isLag);
@ -35,7 +38,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
ser.Sync(nameof(cpu_resume_pending), ref cpu_resume_pending);
ser.Sync(nameof(slow_access), ref slow_access);
ser.Sync(nameof(slow_access), ref slow_countdown);
ser.Sync(nameof(slow_countdown), ref slow_countdown);
ser.Sync("small flag", ref small_flag);
ser.Sync("pal kara", ref PAL_Kara);
ser.Sync("Cart RAM", ref cart_RAM);

View File

@ -23,8 +23,12 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
ser.Sync("FrameStartCycles", ref _frameStartCycles);
ser.Sync("FrameEndCycles", ref _frameEndCycles);
ser.BeginSection("AUD0");
AUD[0].SyncState(ser);
ser.EndSection();
ser.BeginSection("AUD1");
AUD[1].SyncState(ser);
ser.EndSection();
ser.EndSection();
}