Fix path to Crashpad data on Windows.

This commit is contained in:
Roman Telezhynskyi 2024-04-13 12:31:19 +03:00
parent 08c4d1e411
commit b4b26b115b

View File

@ -93,15 +93,25 @@ auto VCrashPaths::GetHandlerPath() const -> QString
//---------------------------------------------------------------------------------------------------------------------
auto VCrashPaths::GetReportsPath() -> QString
{
#if defined(Q_OS_WINDOWS)
return QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + QDir::separator() +
QStringList{"User Data", "Crashpad", "Reports"}.join(QDir::separator());
#else
return QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + QDir::separator() +
QStringList{VER_COMPANYNAME_STR, "User Data", "Crashpad", "Reports"}.join(QDir::separator());
#endif
}
//---------------------------------------------------------------------------------------------------------------------
auto VCrashPaths::GetMetricsPath() -> QString
{
#if defined(Q_OS_WINDOWS)
return QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + QDir::separator() +
QStringList{"User Data", "Crashpad", "Metrics"}.join(QDir::separator());
#else
return QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + QDir::separator() +
QStringList{VER_COMPANYNAME_STR, "User Data", "Crashpad", "Metrics"}.join(QDir::separator());
#endif
}
//---------------------------------------------------------------------------------------------------------------------