Add version to the crash dump info

This commit is contained in:
ZehMatt 2021-07-26 00:39:39 +03:00
parent c9731a8ba9
commit dab33b3347
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 2 additions and 1 deletions

View File

@ -69,6 +69,7 @@ static bool UploadMinidump(const std::map<std::wstring, std::wstring>& files, in
L"post?format=minidump&token=" BACKTRACE_TOKEN);
std::map<std::wstring, std::wstring> parameters;
parameters[L"product_name"] = L"openrct2";
parameters[L"version"] = String::ToWideChar(gVersionInfoFull);
// In case of releases this can be empty
if (wcslen(_wszCommitSha1Short) > 0)
{
@ -336,7 +337,7 @@ CExceptionHandler crash_init()
auto exHandler = new google_breakpad::ExceptionHandler(
GetDumpDirectory(), 0, OnCrash, 0, google_breakpad::ExceptionHandler::HANDLER_ALL, MiniDumpWithDataSegs, PipeName, 0);
return reinterpret_cast<CExceptionHandler>(exHandler);
#else // USE_BREAKPAD
#else // USE_BREAKPAD
return nullptr;
#endif // USE_BREAKPAD
}