perhaps gracefully handle loading an old savestate with an embedded movie
This commit is contained in:
parent
aff4bb2367
commit
8309deab65
|
@ -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.");
|
FCEU_PrintError("Cannot loadstate in Read+Write with movie from archive. Movie is now Read-Only.");
|
||||||
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);
|
||||||
|
@ -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