| 10144 | } |
| 10145 | |
| 10146 | void warpmode(int mode) |
| 10147 | { |
| 10148 | if (mode < 0) { |
| 10149 | if (currprefs.turbo_emulation) { |
| 10150 | changed_prefs.gfx_framerate = currprefs.gfx_framerate = 1; |
| 10151 | currprefs.turbo_emulation = 0; |
| 10152 | } else { |
| 10153 | currprefs.turbo_emulation = 1; |
| 10154 | } |
| 10155 | } else if (mode == 0 && currprefs.turbo_emulation) { |
| 10156 | if (currprefs.turbo_emulation > 0) |
| 10157 | changed_prefs.gfx_framerate = currprefs.gfx_framerate = 1; |
| 10158 | currprefs.turbo_emulation = 0; |
| 10159 | } else if (mode > 0 && !currprefs.turbo_emulation) { |
| 10160 | currprefs.turbo_emulation = 1; |
| 10161 | } |
| 10162 | if (currprefs.turbo_emulation) { |
| 10163 | if (!currprefs.cpu_memory_cycle_exact && !currprefs.blitter_cycle_exact && currprefs.gfx_overscanmode < OVERSCANMODE_ULTRA) |
| 10164 | changed_prefs.gfx_framerate = currprefs.gfx_framerate = 10; |
| 10165 | pause_sound (); |
| 10166 | } else { |
| 10167 | resume_sound (); |
| 10168 | } |
| 10169 | compute_vsynctime (); |
| 10170 | #ifdef RETROPLATFORM |
| 10171 | rp_turbo_cpu (currprefs.turbo_emulation); |
| 10172 | #endif |
| 10173 | changed_prefs.turbo_emulation = currprefs.turbo_emulation; |
| 10174 | set_config_changed (); |
| 10175 | setsystime (); |
| 10176 | } |
| 10177 | |
| 10178 | void pausemode (int mode) |
| 10179 | { |
no test coverage detected