summaryrefslogtreecommitdiffstats
path: root/src/core/reporter.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-07-08 03:39:40 +0200
committerGitHub <noreply@github.com>2019-07-08 03:39:40 +0200
commit8f5aae30746f678eed69d8f311e9b5634a8dd12c (patch)
tree3755447c918a345e88cca7a5e925543ea1a9fc4f /src/core/reporter.cpp
parentMerge pull request #2694 from FearlessTobi/patch-1 (diff)
parentfsp-srv: Implement GetAccessLogVersionInfo (diff)
downloadyuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.tar
yuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.tar.gz
yuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.tar.bz2
yuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.tar.lz
yuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.tar.xz
yuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.tar.zst
yuzu-8f5aae30746f678eed69d8f311e9b5634a8dd12c.zip
Diffstat (limited to 'src/core/reporter.cpp')
-rw-r--r--src/core/reporter.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index 6ea26fda7..5d4c3e6ea 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -350,6 +350,24 @@ void Reporter::SaveErrorReport(u64 title_id, ResultCode result,
SaveToFile(std::move(out), GetPath("error_report", title_id, timestamp));
}
+void Reporter::SaveFilesystemAccessReport(Service::FileSystem::LogMode log_mode,
+ std::string log_message) const {
+ if (!IsReportingEnabled())
+ return;
+
+ const auto timestamp = GetTimestamp();
+ const auto title_id = system.CurrentProcess()->GetTitleID();
+ json out;
+
+ out["yuzu_version"] = GetYuzuVersionData();
+ out["report_common"] = GetReportCommonData(title_id, RESULT_SUCCESS, timestamp);
+
+ out["log_mode"] = fmt::format("{:08X}", static_cast<u32>(log_mode));
+ out["log_message"] = std::move(log_message);
+
+ SaveToFile(std::move(out), GetPath("filesystem_access_report", title_id, timestamp));
+}
+
void Reporter::SaveUserReport() const {
if (!IsReportingEnabled()) {
return;