Allows changing Read-Only state by toggling Recording/Playing even if movie finished.

This commit is contained in:
aquanull 2018-04-05 00:53:56 +08:00
parent 23c7ce7342
commit e7adca9132
1 changed files with 7 additions and 2 deletions

View File

@ -1680,8 +1680,13 @@ void FCEUI_MovieToggleRecording()
if (movieMode == MOVIEMODE_INACTIVE)
strcpy(message, "Cannot toggle Recording");
else if (currFrameCounter > (int)currMovieData.records.size())
strcpy(message, "Cannot toggle Recording in a future state");
else if (movieMode == MOVIEMODE_PLAY || (movieMode == MOVIEMODE_FINISHED && currFrameCounter == (int)currMovieData.records.size()))
{
movie_readonly = !movie_readonly;
if (movie_readonly)
strcpy(message, "Movie is now Read-Only (finished)");
else
strcpy(message, "Movie is now Read+Write (finished)");
} else if (movieMode == MOVIEMODE_PLAY || (movieMode == MOVIEMODE_FINISHED && currFrameCounter == (int)currMovieData.records.size()))
{
strcpy(message, "Movie is now Read+Write");
movie_readonly = false;