lets try pause after playing again.. i still dont fully understand whats going on...

This commit is contained in:
zeromus 2008-05-26 22:45:17 +00:00
parent a24c85ba6e
commit 1c664bbfb3
1 changed files with 10 additions and 9 deletions

View File

@ -588,15 +588,7 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush)
//stop when we run out of frames
if(currFrameCounter == currMovieData.records.size())
{
if(FCEUD_PauseAfterPlayback())
{
FCEUI_ToggleEmulationPause();
FCEU_DispMessage("Paused after playback");
}
else
StopPlayback();
}
StopPlayback();
}
else
{
@ -605,6 +597,15 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush)
js[i] = mr.joysticks[i];
}
//if we are on the last frame, then pause the emulator if the player requested it
if(currFrameCounter == currMovieData.records.size()-1)
{
if(FCEUD_PauseAfterPlayback())
{
FCEUI_ToggleEmulationPause();
}
}
//pause the movie at a specified frame
if(FCEUMOV_ShouldPause() && FCEUI_EmulationPaused()==0)
{