Variables declared as uInt64 should be serialized as such.

This commit is contained in:
Stephen Anthony 2018-05-12 17:04:33 -02:30
parent c3766021d8
commit dc77f5d5f1
3 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@
#include "StateManager.hxx"
#define STATE_HEADER "05010000state"
#define STATE_HEADER "05019000state"
// #define MOVIE_HEADER "03030000movie"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -116,7 +116,7 @@ bool PaddleReader::save(Serializer& out) const
out.putDouble(myU);
out.putDouble(myValue);
out.putDouble(myTimestamp);
out.putLong(myTimestamp);
out.putInt(int(myConsoleTiming));
out.putDouble(myClockFreq);
@ -144,7 +144,7 @@ bool PaddleReader::load(Serializer& in)
myU = in.getDouble();
myValue = in.getDouble();
myTimestamp = in.getDouble();
myTimestamp = in.getLong();
myConsoleTiming = ConsoleTiming(in.getInt());
myClockFreq = in.getDouble();

View File

@ -275,7 +275,7 @@ bool TIA::save(Serializer& out) const
out.putByte(myColorHBlank);
out.putDouble(myTimestamp);
out.putLong(myTimestamp);
out.putByteArray(myShadowRegisters, 64);
@ -343,7 +343,7 @@ bool TIA::load(Serializer& in)
myColorHBlank = in.getByte();
myTimestamp = in.getDouble();
myTimestamp = in.getLong();
in.getByteArray(myShadowRegisters, 64);