MCPcopy Create free account
hub / github.com/Norbyte/bg3se / GetBacktrace

Method GetBacktrace

CrashReporter/CrashReporter.cpp:95–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95std::string CrashReporter::GetBacktrace()
96{
97 std::ifstream f(backtracePath_, std::ios::in | std::ios::binary);
98 if (!f.good()) return {};
99 std::string bt;
100 f.seekg(0, std::ios::end);
101 auto btSize = f.tellg();
102 bt.resize(btSize);
103 f.seekg(0, std::ios::beg);
104 f.read(bt.data(), btSize);
105 return bt;
106}
107
108bool CrashReporter::ShowUploadConfirmationDialog()
109{

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected