Fixed so that Play movie from beginning has no affect on a movie that starts from a savestate rather than attempting to and using a power cycle to do it. TODO: properly replay a movie from beginning that starts from savestate.

This commit is contained in:
adelikat 2010-05-25 00:50:27 +00:00
parent 6fdd63bc66
commit 1aafbe1a62
1 changed files with 8 additions and 7 deletions

View File

@ -1485,16 +1485,17 @@ void FCEUI_MovieToggleReadOnly()
void FCEUI_MoviePlayFromBeginning(void) void FCEUI_MoviePlayFromBeginning(void)
{ {
if (movieMode != MOVIEMODE_INACTIVE && movieMode != MOVIEMODE_TASEDIT) if (movieMode != MOVIEMODE_INACTIVE && movieMode != MOVIEMODE_TASEDIT)
{
if (currMovieData.savestate.empty())
{ {
movie_readonly=true; movie_readonly=true;
poweron(true); poweron(true); //Bad, this assumes a movie doesn't start from savestate
currFrameCounter=0; currFrameCounter=0;
movieMode = MOVIEMODE_PLAY; movieMode = MOVIEMODE_PLAY;
FCEU_DispMessage("Movie is now Read-Only. Playing from beginning.",0); FCEU_DispMessage("Movie is now Read-Only. Playing from beginning.",0);
} }
} }
}
string FCEUI_GetMovieName(void) string FCEUI_GetMovieName(void)
{ {