perhaps gracefully handle loading an old savestate with an embedded movie

This commit is contained in:
zeromus 2008-08-10 03:19:59 +00:00
parent aff4bb2367
commit 8309deab65
1 changed files with 2 additions and 2 deletions

View File

@ -956,7 +956,6 @@ bool FCEUMOV_ReadState(std::istream* is, uint32 size)
FCEU_PrintError("Cannot loadstate in Read+Write with movie from archive. Movie is now Read-Only.");
movie_readonly = true;
}
////write the state to disk so we can reload
//std::vector<char> buf(size);
@ -969,7 +968,8 @@ bool FCEUMOV_ReadState(std::istream* is, uint32 size)
////---------
//memorystream mstemp(&buf);
MovieData tempMovieData = MovieData();
LoadFM2(tempMovieData, is, size, false);
if(!LoadFM2(tempMovieData, is, size, false))
return false;
//complex TAS logic for when a savestate is loaded:
//----------------