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

Function win_debuggerLoopStep

src/drivers/win/main.cpp:998–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998void win_debuggerLoopStep()
999{
1000 FCEUD_UpdateInput();
1001 _updateWindow();
1002
1003 //question:
1004 //should this go here, or in the loop?
1005
1006 // HACK: break when Frame Advance is pressed
1007 extern bool frameAdvanceRequested;
1008 extern int frameAdvance_Delay_count, frameAdvance_Delay;
1009 if (frameAdvanceRequested)
1010 {
1011 if (frameAdvance_Delay_count == 0 || frameAdvance_Delay_count >= frameAdvance_Delay)
1012 FCEUI_SetEmulationPaused(EMULATIONPAUSED_FA);
1013 if (frameAdvance_Delay_count < frameAdvance_Delay)
1014 frameAdvance_Delay_count++;
1015 }
1016}
1017
1018void win_debuggerLoop()
1019{

Callers 2

emu_debuggerloopstepFunction · 0.85
win_debuggerLoopFunction · 0.85

Calls 3

_updateWindowFunction · 0.85
FCEUI_SetEmulationPausedFunction · 0.85
FCEUD_UpdateInputFunction · 0.70

Tested by

no test coverage detected