diff --git a/src/common/StateManager.cxx b/src/common/StateManager.cxx index 768d4c928..66a62bf29 100644 --- a/src/common/StateManager.cxx +++ b/src/common/StateManager.cxx @@ -27,7 +27,7 @@ #include "StateManager.hxx" -#define STATE_HEADER "05010000state" +#define STATE_HEADER "05019000state" // #define MOVIE_HEADER "03030000movie" // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/emucore/tia/PaddleReader.cxx b/src/emucore/tia/PaddleReader.cxx index 8ae0ba201..dbc3d48aa 100644 --- a/src/emucore/tia/PaddleReader.cxx +++ b/src/emucore/tia/PaddleReader.cxx @@ -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(); diff --git a/src/emucore/tia/TIA.cxx b/src/emucore/tia/TIA.cxx index 84dbdf76e..c07abedae 100644 --- a/src/emucore/tia/TIA.cxx +++ b/src/emucore/tia/TIA.cxx @@ -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);