From 71499e531086979fa95df178f6295be9cac6dd2b Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 13 Apr 2018 18:09:36 -0400 Subject: [PATCH] NESHawk: Mapper 219 savestates --- .../Nintendo/NES/Boards/MMC3_family/Mapper219.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/MMC3_family/Mapper219.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/MMC3_family/Mapper219.cs index 53c335f07f..13d30b938d 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/MMC3_family/Mapper219.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/MMC3_family/Mapper219.cs @@ -1,4 +1,5 @@ using System; +using BizHawk.Common; namespace BizHawk.Emulation.Cores.Nintendo.NES { @@ -143,5 +144,16 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES else base.WritePPU(addr, value); } + + public override void SyncState(Serializer ser) + { + ser.Sync("exregs", ref exregs, false); + ser.Sync("prgregs", ref prgregs, false); + ser.Sync("chrregs", ref chrregs, false); + ser.Sync("bits_rev", ref bits_rev); + ser.Sync("reg_value", ref reg_value); + + base.SyncState(ser); + } } }