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

@ -957,7 +957,6 @@ bool FCEUMOV_ReadState(std::istream* is, uint32 size)
movie_readonly = true; movie_readonly = true;
} }
////write the state to disk so we can reload ////write the state to disk so we can reload
//std::vector<char> buf(size); //std::vector<char> buf(size);
//fread(&buf[0],1,size,st); //fread(&buf[0],1,size,st);
@ -969,7 +968,8 @@ bool FCEUMOV_ReadState(std::istream* is, uint32 size)
////--------- ////---------
//memorystream mstemp(&buf); //memorystream mstemp(&buf);
MovieData tempMovieData = MovieData(); 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: //complex TAS logic for when a savestate is loaded:
//---------------- //----------------