From e7adca91324a0212535255d99dab85d520a3c833 Mon Sep 17 00:00:00 2001 From: aquanull Date: Thu, 5 Apr 2018 00:53:56 +0800 Subject: [PATCH] Allows changing Read-Only state by toggling Recording/Playing even if movie finished. --- src/movie.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/movie.cpp b/src/movie.cpp index e06fcf9f..b4ad8ceb 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -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;