From 4f4b26d10e7a72875ceb11314ffdbed33d052552 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 8 Jun 2015 22:03:48 +0000 Subject: [PATCH] Apple II - put prev/next pressed states into savestates --- .../Computers/AppleII/AppleII.IStatable.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs b/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs index 0776ec7973..8c2bf5ff84 100644 --- a/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs +++ b/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs @@ -46,6 +46,10 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII w.WriteValue(IsLagFrame); w.WritePropertyName("CurrentDisk"); w.WriteValue(CurrentDisk); + w.WritePropertyName("PreviousDiskPressed"); + w.WriteValue(_prevPressed); + w.WritePropertyName("NextDiskPressed"); + w.WriteValue(_nextPressed); w.WritePropertyName("Core"); _machine.Serialize(w); w.WriteEndObject(); @@ -59,9 +63,8 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII IsLagFrame = o.IsLagFrame; CurrentDisk = o.CurrentDisk; _machine = o.Core; - - // should not be needed. - // InitDisk(); + _prevPressed = o.PreviousDiskPressed; + _nextPressed = o.NextDiskPressed; } public class OtherData @@ -70,6 +73,8 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII public int LagCount; public bool IsLagFrame; public int CurrentDisk; + public bool PreviousDiskPressed; + public bool NextDiskPressed; public Machine Core; }