MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / warpmode

Function warpmode

src/inputdevice.cpp:10146–10176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10144}
10145
10146void 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
10178void pausemode (int mode)
10179{

Callers 7

inputdevice_vsyncFunction · 0.85
warpmode_resetFunction · 0.85
HandleSetWarpFunction · 0.85
reset_core_runtime_stateFunction · 0.85
retro_runFunction · 0.85

Calls 5

pause_soundFunction · 0.85
resume_soundFunction · 0.85
compute_vsynctimeFunction · 0.85
set_config_changedFunction · 0.85
setsystimeFunction · 0.85

Tested by

no test coverage detected