From 5da20a3a7a62afb2b0fcc793232f3846ceb476df Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Thu, 15 Jun 2017 17:16:06 +0200 Subject: [PATCH] Savestate handling. --- src/emucore/tia/FrameManager.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/emucore/tia/FrameManager.cxx b/src/emucore/tia/FrameManager.cxx index 0edd1a5e1..e1a26f531 100644 --- a/src/emucore/tia/FrameManager.cxx +++ b/src/emucore/tia/FrameManager.cxx @@ -382,6 +382,10 @@ bool FrameManager::save(Serializer& out) const out.putInt(myFramesInMode); out.putBool(myModeConfirmed); + out.putInt(myStableFrames); + out.putInt(myStabilizationFrames); + out.putBool(myHasStabilized); + out.putBool(myVsync); out.putInt(myVblankLines); @@ -428,6 +432,10 @@ bool FrameManager::load(Serializer& in) myFramesInMode = in.getInt(); myModeConfirmed = in.getBool(); + myStableFrames = in.getInt(); + myStabilizationFrames = in.getInt(); + myHasStabilized = in.getBool(); + myVsync = in.getBool(); myVblankLines = in.getInt();