| 275 | } |
| 276 | |
| 277 | void OpenLogFile(std::ofstream& ofstream, const std::wstring& filename, OpenMode::type mode) |
| 278 | { |
| 279 | ofstream.open(filename, mode == OpenMode::Truncate ? std::ofstream::trunc : std::ofstream::app); |
| 280 | |
| 281 | if (mode == OpenMode::Truncate) |
| 282 | { |
| 283 | // intentionally maintain the same amount of Columnns, so it is always easy to parse by csv import tools |
| 284 | WriteLogFileMessage(ofstream, 0, Win32::GetSystemTimeAsFileTime(), 0, "DebugView++.exe", g_debugViewPPIdentification1); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | std::string GetOffsetText(double time) |
| 289 | { |