summaryrefslogtreecommitdiffstats
path: root/src/core/reporter.cpp
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-27 00:02:19 +0200
committerZach Hilman <zachhilman@gmail.com>2019-09-22 01:17:08 +0200
commit787b191abf8789d18c829ab7e7135bb6e3fcc680 (patch)
tree3f4b4927affb9c100bfeb4d0ea4fb97190f48d10 /src/core/reporter.cpp
parentUpdate README.md (#2871) (diff)
downloadyuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.tar
yuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.tar.gz
yuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.tar.bz2
yuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.tar.lz
yuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.tar.xz
yuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.tar.zst
yuzu-787b191abf8789d18c829ab7e7135bb6e3fcc680.zip
Diffstat (limited to 'src/core/reporter.cpp')
-rw-r--r--src/core/reporter.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp
index cfe0771e2..9c657929e 100644
--- a/src/core/reporter.cpp
+++ b/src/core/reporter.cpp
@@ -304,8 +304,8 @@ void Reporter::SaveUnimplementedAppletReport(
SaveToFile(std::move(out), GetPath("unimpl_applet_report", title_id, timestamp));
}
-void Reporter::SavePlayReport(u64 title_id, u64 process_id, std::vector<std::vector<u8>> data,
- std::optional<u128> user_id) const {
+void Reporter::SavePlayReport(PlayReportType type, u64 title_id, std::vector<std::vector<u8>> data,
+ std::optional<u64> process_id, std::optional<u128> user_id) const {
if (!IsReportingEnabled()) {
return;
}
@@ -321,7 +321,11 @@ void Reporter::SavePlayReport(u64 title_id, u64 process_id, std::vector<std::vec
data_out.push_back(Common::HexToString(d));
}
- out["play_report_process_id"] = fmt::format("{:016X}", process_id);
+ if (process_id.has_value()) {
+ out["play_report_process_id"] = fmt::format("{:016X}", *process_id);
+ }
+
+ out["play_report_type"] = fmt::format("{:02}", static_cast<u8>(type));
out["play_report_data"] = std::move(data_out);
SaveToFile(std::move(out), GetPath("play_report", title_id, timestamp));