MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEUI_PauseForDuration

Function FCEUI_PauseForDuration

src/fceu.cpp:1285–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283}
1284
1285void FCEUI_PauseForDuration(int secs)
1286{
1287 int framesPerSec;
1288
1289 // If already paused, do nothing
1290 if (EmulationPaused & EMULATIONPAUSED_PAUSED)
1291 {
1292 return;
1293 }
1294
1295 if (PAL || dendy)
1296 {
1297 framesPerSec = 50;
1298 }
1299 else
1300 {
1301 framesPerSec = 60;
1302 }
1303 pauseTimer = framesPerSec * secs;
1304 EmulationPaused |= EMULATIONPAUSED_TIMER;
1305}
1306
1307int FCEUI_PauseFramesRemaining(void)
1308{

Callers 1

loadStateByIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected