MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / StartRecording

Function StartRecording

PresentMon/MainThread.cpp:102–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static void StartRecording()
103{
104 auto const& args = GetCommandLineArgs();
105
106 assert(IsRecording() == false);
107 gIsRecording = true;
108
109 // Notify user we're recording
110 if (args.mConsoleOutput == ConsoleOutput::Simple && args.mCSVOutput != CSVOutput::None) {
111 wprintf(L"Started recording.\n");
112 }
113 if (args.mScrollLockIndicator) {
114 EnableScrollLock(true);
115 }
116
117 // Tell OutputThread to record
118 SetOutputRecordingState(true);
119
120 // Start --timed timer
121 if (args.mStartTimer) {
122 SetTimer(gWnd, TIMED_TIMER_ID, args.mTimer * 1000, (TIMERPROC) nullptr);
123 }
124}
125
126static void StopRecording()
127{

Callers 1

HandleWindowMessageFunction · 0.85

Calls 3

IsRecordingFunction · 0.85
EnableScrollLockFunction · 0.85
SetOutputRecordingStateFunction · 0.85

Tested by

no test coverage detected