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

Function UpdateLogText

src/drivers/win/tracer.cpp:1075–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073}
1074
1075void UpdateLogText(void)
1076{
1077 int j;
1078 trace_str[0] = 0;
1079
1080 if (!tracelogbuf || !tracelogbufpos || !tracelogbufsize)
1081 return;
1082
1083 int last_line = tracesi.nPos + tracesi.nPage;
1084 if (last_line > tracesi.nMax)
1085 last_line = tracesi.nMax;
1086
1087 int i = tracesi.nPos;
1088 if (i < tracesi.nMin)
1089 i = tracesi.nMin;
1090
1091 for (; i < last_line; i++)
1092 {
1093 j = i;
1094 if (tracelogbufusedsize == tracelogbufsize)
1095 j = (tracelogbufpos + i) % tracelogbufsize;
1096 strcat(trace_str, tracelogbuf[j]);
1097 }
1098 SetDlgItemText(hTracer, IDC_TRACER_LOG, trace_str);
1099 //sprintf(str,"nPage = %d, nPos = %d, nMax = %d, nMin = %d",tracesi.nPage,tracesi.nPos,tracesi.nMax,tracesi.nMin);
1100 //SetDlgItemText(hTracer, IDC_TRACER_STATS, str);
1101 return;
1102}
1103
1104void EnableTracerMenuItems(void)
1105{

Callers 3

TracerCallBFunction · 0.85
EndLoggingSequenceFunction · 0.85
UpdateLogWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected