lets try pause after playing again.. i still dont fully understand whats going on...
This commit is contained in:
parent
a24c85ba6e
commit
1c664bbfb3
|
@ -588,16 +588,8 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush)
|
||||||
//stop when we run out of frames
|
//stop when we run out of frames
|
||||||
if(currFrameCounter == currMovieData.records.size())
|
if(currFrameCounter == currMovieData.records.size())
|
||||||
{
|
{
|
||||||
|
|
||||||
if(FCEUD_PauseAfterPlayback())
|
|
||||||
{
|
|
||||||
FCEUI_ToggleEmulationPause();
|
|
||||||
FCEU_DispMessage("Paused after playback");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
StopPlayback();
|
StopPlayback();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MovieRecord& mr = currMovieData.records[currFrameCounter];
|
MovieRecord& mr = currMovieData.records[currFrameCounter];
|
||||||
|
@ -605,6 +597,15 @@ void FCEUMOV_AddJoy(uint8 *js, int SkipFlush)
|
||||||
js[i] = mr.joysticks[i];
|
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
|
//pause the movie at a specified frame
|
||||||
if(FCEUMOV_ShouldPause() && FCEUI_EmulationPaused()==0)
|
if(FCEUMOV_ShouldPause() && FCEUI_EmulationPaused()==0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue