| 1283 | } |
| 1284 | |
| 1285 | void 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 | |
| 1307 | int FCEUI_PauseFramesRemaining(void) |
| 1308 | { |