| 100 | } |
| 101 | |
| 102 | static 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 | |
| 126 | static void StopRecording() |
| 127 | { |
no test coverage detected