mirror of https://github.com/stella-emu/stella.git
truncated state files (fixes #875)
This commit is contained in:
parent
cd586b92e3
commit
7e9837b576
|
@ -256,7 +256,7 @@ void StateManager::saveState(int slot)
|
|||
<< ".st" << slot;
|
||||
|
||||
// Make sure the file can be opened for writing
|
||||
Serializer out(buf.str());
|
||||
Serializer out(buf.str(), Serializer::Mode::ReadWriteTrunc);
|
||||
if(!out)
|
||||
{
|
||||
buf.str("");
|
||||
|
|
|
@ -173,9 +173,11 @@ class StateManager
|
|||
// MD5 of the currently active ROM (either in movie or rewind mode)
|
||||
string myMD5;
|
||||
|
||||
#if 0
|
||||
// Serializer classes used to save/load the eventstream
|
||||
Serializer myMovieWriter;
|
||||
Serializer myMovieReader;
|
||||
#endif
|
||||
|
||||
// Stored savestates to be later rewound
|
||||
unique_ptr<RewindManager> myRewindManager;
|
||||
|
|
Loading…
Reference in New Issue