diff options
| -rw-r--r-- | src/core/reporter.cpp | 8 | ||||
| -rw-r--r-- | src/core/reporter.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp index 6e21296f6..543b91d9a 100644 --- a/src/core/reporter.cpp +++ b/src/core/reporter.cpp | |||
| @@ -339,8 +339,8 @@ void Reporter::SavePlayReport(PlayReportType type, u64 title_id, std::vector<std | |||
| 339 | } | 339 | } |
| 340 | 340 | ||
| 341 | void Reporter::SaveErrorReport(u64 title_id, Result result, | 341 | void Reporter::SaveErrorReport(u64 title_id, Result result, |
| 342 | std::optional<std::string> custom_text_main, | 342 | const std::optional<std::string>& custom_text_main, |
| 343 | std::optional<std::string> custom_text_detail) const { | 343 | const std::optional<std::string>& custom_text_detail) const { |
| 344 | if (!IsReportingEnabled()) { | 344 | if (!IsReportingEnabled()) { |
| 345 | return; | 345 | return; |
| 346 | } | 346 | } |
| @@ -354,8 +354,8 @@ void Reporter::SaveErrorReport(u64 title_id, Result result, | |||
| 354 | out["backtrace"] = GetBacktraceData(system); | 354 | out["backtrace"] = GetBacktraceData(system); |
| 355 | 355 | ||
| 356 | out["error_custom_text"] = { | 356 | out["error_custom_text"] = { |
| 357 | {"main", *custom_text_main}, | 357 | {"main", custom_text_main.value_or("")}, |
| 358 | {"detail", *custom_text_detail}, | 358 | {"detail", custom_text_detail.value_or("")}, |
| 359 | }; | 359 | }; |
| 360 | 360 | ||
| 361 | SaveToFile(std::move(out), GetPath("error_report", title_id, timestamp)); | 361 | SaveToFile(std::move(out), GetPath("error_report", title_id, timestamp)); |
diff --git a/src/core/reporter.h b/src/core/reporter.h index 68755cbde..983a9545a 100644 --- a/src/core/reporter.h +++ b/src/core/reporter.h | |||
| @@ -61,8 +61,8 @@ public: | |||
| 61 | 61 | ||
| 62 | // Used by error applet | 62 | // Used by error applet |
| 63 | void SaveErrorReport(u64 title_id, Result result, | 63 | void SaveErrorReport(u64 title_id, Result result, |
| 64 | std::optional<std::string> custom_text_main = {}, | 64 | const std::optional<std::string>& custom_text_main = {}, |
| 65 | std::optional<std::string> custom_text_detail = {}) const; | 65 | const std::optional<std::string>& custom_text_detail = {}) const; |
| 66 | 66 | ||
| 67 | void SaveFSAccessLog(std::string_view log_message) const; | 67 | void SaveFSAccessLog(std::string_view log_message) const; |
| 68 | 68 | ||