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

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