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

Function UpdateLogWindow

src/drivers/win/tracer.cpp:1042–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040}
1041
1042void UpdateLogWindow(void)
1043{
1044 //we don't want to continue if the trace logger isn't logging, or if its logging to a file.
1045 if ((!logging) || logtofile)
1046 return;
1047
1048 // only update the window when some emulation occured
1049 // and only update the window when emulator is paused or log_update_window=true
1050 bool emu_paused = (FCEUI_EmulationPaused() != 0);
1051 if ((!emu_paused && !log_update_window) || (log_old_emu_paused && !JustFrameAdvanced)) //mbg merge 7/19/06 changd to use EmulationPaused()
1052 {
1053 log_old_emu_paused = emu_paused;
1054 return;
1055 }
1056 log_old_emu_paused = emu_paused;
1057
1058 ScrollLogWindowToLastLine();
1059 UpdateLogText();
1060 return;
1061}
1062
1063void ScrollLogWindowToLastLine()
1064{

Callers 2

_updateWindowFunction · 0.85

Calls 3

FCEUI_EmulationPausedFunction · 0.85
UpdateLogTextFunction · 0.85

Tested by

no test coverage detected