From 04b490aca45f3a74c9b986538535efa3848f6d8e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 25 Apr 2015 13:14:12 +0000 Subject: [PATCH] Apple II - add frame count to savestates --- BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs b/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs index fde2b4dccb..5cc1b5b323 100644 --- a/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs +++ b/BizHawk.Emulation.Cores/Computers/AppleII/AppleII.IStatable.cs @@ -21,12 +21,14 @@ namespace BizHawk.Emulation.Cores.Computers.AppleII public void SaveStateBinary(BinaryWriter writer) { + writer.Write(Frame); writer.Write(CurrentDisk); _machine.SaveState(writer); } public void LoadStateBinary(BinaryReader reader) { + Frame = reader.ReadInt32(); CurrentDisk = reader.ReadInt32(); InitDisk(); _machine.LoadState(reader);