reverted all fceu_emulate changes
This commit is contained in:
parent
a962ff65de
commit
b6edc72bc8
20
src/fceu.cpp
20
src/fceu.cpp
|
@ -526,19 +526,14 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
|
|||
|
||||
JustFrameAdvanced = false;
|
||||
|
||||
if(frameAdvanceRequested)
|
||||
{
|
||||
if(frameAdvanceDelay==0)
|
||||
{
|
||||
if(frameAdvanceRequested) {
|
||||
if(frameAdvanceDelay==0) {
|
||||
EmulationPaused = 3;
|
||||
frameAdvanceDelay++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(frameAdvanceDelay>=10)
|
||||
} else {
|
||||
if(frameAdvanceDelay>=10) {
|
||||
EmulationPaused = 3;
|
||||
else
|
||||
frameAdvanceDelay++;
|
||||
} else frameAdvanceDelay++;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -593,7 +588,6 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
|
|||
*SoundBufSize=0; // keep sound muted
|
||||
#endif
|
||||
JustFrameAdvanced = true;
|
||||
frameAdvanceRequested = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -607,11 +601,8 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
|
|||
*SoundBufSize=0; // keep sound muted
|
||||
#endif
|
||||
JustFrameAdvanced = true;
|
||||
frameAdvanceRequested = false;
|
||||
}
|
||||
} //I apologize to anyone who comes in and tries to fgiure this if branching out
|
||||
if (JustFrameAdvanced)
|
||||
frameAdvanceRequested = false;
|
||||
currMovieData.TryDumpIncremental();
|
||||
if (lagFlag)
|
||||
{
|
||||
|
@ -620,7 +611,6 @@ void FCEUI_Emulate(uint8 **pXBuf, int32 **SoundBuf, int32 *SoundBufSize, int ski
|
|||
}
|
||||
else justLagged = false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
void FCEUI_CloseGame(void)
|
||||
|
|
Loading…
Reference in New Issue