perhaps gracefully handle loading an old savestate with an embedded movie
This commit is contained in:
parent
aff4bb2367
commit
8309deab65
|
@ -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:
|
||||||
//----------------
|
//----------------
|
||||||
|
|
Loading…
Reference in New Issue