Savestate handling.

This commit is contained in:
Christian Speckner 2017-06-15 17:16:06 +02:00
parent bdded5e600
commit 5da20a3a7a
1 changed files with 8 additions and 0 deletions

View File

@ -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();