From daff01ad2e628026f6efe576908a52a116983a51 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Mon, 30 Jul 2012 13:43:25 +0000 Subject: [PATCH] Genesis - add lag and frame counts to savestates --- BizHawk.Emulation/Consoles/Sega/Genesis/Genesis.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Sega/Genesis/Genesis.cs b/BizHawk.Emulation/Consoles/Sega/Genesis/Genesis.cs index 92a0067acc..aeda2a5e01 100644 --- a/BizHawk.Emulation/Consoles/Sega/Genesis/Genesis.cs +++ b/BizHawk.Emulation/Consoles/Sega/Genesis/Genesis.cs @@ -181,7 +181,8 @@ namespace BizHawk.Emulation.Consoles.Sega SoundCPU.SaveStateText(writer); PSG.SaveStateText(writer); VDP.SaveStateText(writer); - + writer.WriteLine("Frame {0}", Frame); + writer.WriteLine("Lag {0}", _lagcount); writer.Write("MainRAM "); Ram.SaveAsHex(writer); writer.Write("Z80RAM "); @@ -207,6 +208,10 @@ namespace BizHawk.Emulation.Consoles.Sega MainCPU.LoadStateText(reader, "Main68K"); else if (args[0] == "[Z80]") SoundCPU.LoadStateText(reader); + else if (args[0] == "Frame") + Frame = int.Parse(args[1]); + else if (args[0] == "Lag") + _lagcount = int.Parse(args[1]); else if (args[0] == "[PSG]") PSG.LoadStateText(reader); else if (args[0] == "[VDP]")