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:
parent
6fdd63bc66
commit
1aafbe1a62
|
@ -1485,15 +1485,16 @@ 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)
|
||||||
|
|
Loading…
Reference in New Issue