| 1040 | } |
| 1041 | |
| 1042 | void 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 | |
| 1063 | void ScrollLogWindowToLastLine() |
| 1064 | { |
no test coverage detected