UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CrashReportCoreConfig.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Containers/Array.h"
7#include "CoreMinimal.h"
8
9// FORCE_CRASH_REPORT_UNATTENDED can be added to target.cs or UBT commandline in order to set CRASH_REPORT_UNATTENDED_ONLY
10// It should not be defined in code other than when undefined to please IntelliSense.
11#ifndef FORCE_CRASH_REPORT_UNATTENDED
12#define FORCE_CRASH_REPORT_UNATTENDED 0
13#endif
14
15#define CRASH_REPORT_UNATTENDED_ONLY FORCE_CRASH_REPORT_UNATTENDED
16
17class FConfigFile;
18
28{
30 FFullCrashDumpEntry( const FString& InBranchName, const FString& InLocation, const bool bInExactMatch )
34 {}
35
36
38 const FString BranchName;
39
41 const FString Location;
42
47 const bool bExactMatch;
48};
49
52{
55 {
57 return Instance;
58 }
59
62
63 const FString& GetVersion() const
64 {
66 }
67
68 const FString& GetReceiverAddress() const
69 {
71 }
72
73 const FString& GetDataRouterURL() const
74 {
75 return DataRouterUrl;
76 }
77
78 const FString& GetDataRouterUnixSocket() const
79 {
81 }
82
83 const FString& GetDiagnosticsFilename() const
84 {
86 }
87
89 {
91 }
92
97
98 bool GetSendLogFile() const
99 {
100 return bSendLogFile;
101 }
102
104 {
105 return bHideLogFilesOption;
106 }
107
109 {
110 return bHideRestartOption;
111 }
112
117
122
124 {
126 }
127
128 const FString& GetCompanyName() const
129 {
130 return CompanyName;
131 }
132
133#if PLATFORM_WINDOWS
135 {
137 }
138#endif
139
141 {
143 }
144
145 void SetAllowToBeContacted( bool bNewValue );
146 void SetSendLogFile( bool bNewValue );
147
148
149 void ApplyProjectOverrides(const FString& ConfigFilePath);
150
153
157 FString GetFullCrashDumpLocationForBranch(const FString& BranchName) const;
158
162 void PrintSettingsToLog() const;
163
164protected:
167
170
173
176
179
182
184 FString SectionName;
185
188
195
198
201
204
207
210
213
215 FString CompanyName;
216
219
220#if PLATFORM_WINDOWS
223#endif
224
227};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition ConfigCacheIni.h:566
Definition Array.h:670
Definition CrashReportCoreConfig.h:52
FString CrashReportReceiverIP
Definition CrashReportCoreConfig.h:172
TArray< FFullCrashDumpEntry > FullCrashDumpConfigurations
Definition CrashReportCoreConfig.h:187
bool GetHideLogFilesOption() const
Definition CrashReportCoreConfig.h:103
FString CompanyName
Definition CrashReportCoreConfig.h:215
bool IsAllowedToSendWithoutDetailedInfo() const
Definition CrashReportCoreConfig.h:118
FString DataRouterUrl
Definition CrashReportCoreConfig.h:175
void SetSendLogFile(bool bNewValue)
Definition CrashReportCoreConfig.cpp:124
const FString & GetCompanyName() const
Definition CrashReportCoreConfig.h:128
bool bIsAllowedToCloseWithoutSending
Definition CrashReportCoreConfig.h:209
int UserCommentSizeLimit
Definition CrashReportCoreConfig.h:226
void ReadFullCrashDumpConfigurations()
Definition CrashReportCoreConfig.cpp:191
const FString & GetDataRouterURL() const
Definition CrashReportCoreConfig.h:73
bool bShowEndpointInTooltip
Definition CrashReportCoreConfig.h:218
int GetUserCommentSizeLimit() const
Definition CrashReportCoreConfig.h:140
bool IsAllowedToCloseWithoutSending() const
Definition CrashReportCoreConfig.h:113
bool bSendLogFile
Definition CrashReportCoreConfig.h:200
FCrashReportCoreConfig()
Definition CrashReportCoreConfig.cpp:10
bool GetShowEndpointInTooltip() const
Definition CrashReportCoreConfig.h:123
const FString & GetReceiverAddress() const
Definition CrashReportCoreConfig.h:68
FString DataRouterUnixSocket
Definition CrashReportCoreConfig.h:178
static FCrashReportCoreConfig & Get()
Definition CrashReportCoreConfig.h:54
void SetProjectConfigOverrides(const FConfigFile &InConfigFile)
Definition CrashReportCoreConfig.cpp:141
bool bHideLogFilesOption
Definition CrashReportCoreConfig.h:203
bool bHideAllowToBeContactedOption
Definition CrashReportCoreConfig.h:197
bool GetHideAllowToBeContactedOption() const
Definition CrashReportCoreConfig.h:93
bool bIsAllowedToSendWithoutDetailedInfo
Definition CrashReportCoreConfig.h:212
FString CrashReportClientVersion
Definition CrashReportCoreConfig.h:169
FString GetFullCrashDumpLocationForBranch(const FString &BranchName) const
Definition CrashReportCoreConfig.cpp:172
const FString & GetDiagnosticsFilename() const
Definition CrashReportCoreConfig.h:83
const FString & GetVersion() const
Definition CrashReportCoreConfig.h:63
void ApplyProjectOverrides(const FString &ConfigFilePath)
Definition CrashReportCoreConfig.cpp:130
const FString & GetDataRouterUnixSocket() const
Definition CrashReportCoreConfig.h:78
bool GetAllowToBeContacted() const
Definition CrashReportCoreConfig.h:88
bool bAllowToBeContacted
Definition CrashReportCoreConfig.h:194
bool GetHideRestartOption() const
Definition CrashReportCoreConfig.h:108
FString DiagnosticsFilename
Definition CrashReportCoreConfig.h:181
void PrintSettingsToLog() const
Definition CrashReportCoreConfig.cpp:219
FString SectionName
Definition CrashReportCoreConfig.h:184
void SetAllowToBeContacted(bool bNewValue)
Definition CrashReportCoreConfig.cpp:118
bool GetSendLogFile() const
Definition CrashReportCoreConfig.h:98
bool bHideRestartOption
Definition CrashReportCoreConfig.h:206
Definition CrashReportCoreConfig.h:28
FFullCrashDumpEntry(const FString &InBranchName, const FString &InLocation, const bool bInExactMatch)
Definition CrashReportCoreConfig.h:30
const FString Location
Definition CrashReportCoreConfig.h:41
const bool bExactMatch
Definition CrashReportCoreConfig.h:47
const FString BranchName
Definition CrashReportCoreConfig.h:38