MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / GetDumpFilename

Function GetDumpFilename

Source/Exception.cpp:45–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43//#ifdef ENABLE_CRASH_HANDLER
44
45static CStringW GetDumpFilename(int counter)
46{
47 // Append a timestamp to the filename
48 //
49 CStringW filename;
50 CTime t = CTime::GetTickCount();
51
52 filename = MINIDUMP_FILE_PRE;
53
54 // Date
55 AppendFormatW(filename, L"_%02i%02i%02i-%02i%02i", t.GetYear(), t.GetMonth(), t.GetDay(), t.GetHour(), t.GetMinute());
56
57 // App version
58 AppendFormatW(filename, L"-v%s", conv::to_wide(GetDumpVersionString()).data()); // // //
59#ifdef WIP
60 filename.Append(L"_beta");
61#endif
62
63 // Counter
64 if (counter > 0)
65 AppendFormatW(filename, L"(%i)", counter);
66
67 filename.Append(MINIDUMP_FILE_END);
68
69 return filename;
70}
71
72static LONG WINAPI ExceptionHandler(__in struct _EXCEPTION_POINTERS *ep)
73{

Callers 1

ExceptionHandlerFunction · 0.85

Calls 4

AppendFormatWFunction · 0.85
to_wideFunction · 0.85
GetDumpVersionStringFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected