From 787b191abf8789d18c829ab7e7135bb6e3fcc680 Mon Sep 17 00:00:00 2001 From: Zach Hilman Date: Wed, 26 Jun 2019 18:02:19 -0400 Subject: reporter: Differentiate between Old, New, and System play reports --- src/core/reporter.cpp | 10 +++++++--- src/core/reporter.h | 10 ++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'src/core') 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> data, - std::optional user_id) const { +void Reporter::SavePlayReport(PlayReportType type, u64 title_id, std::vector> data, + std::optional process_id, std::optional user_id) const { if (!IsReportingEnabled()) { return; } @@ -321,7 +321,11 @@ void Reporter::SavePlayReport(u64 title_id, u64 process_id, std::vector(type)); out["play_report_data"] = std::move(data_out); SaveToFile(std::move(out), GetPath("play_report", title_id, timestamp)); diff --git a/src/core/reporter.h b/src/core/reporter.h index 44256de50..f08aa11fb 100644 --- a/src/core/reporter.h +++ b/src/core/reporter.h @@ -46,8 +46,14 @@ public: std::vector> normal_channel, std::vector> interactive_channel) const; - void SavePlayReport(u64 title_id, u64 process_id, std::vector> data, - std::optional user_id = {}) const; + enum class PlayReportType { + Old, + New, + System, + }; + + void SavePlayReport(PlayReportType type, u64 title_id, std::vector> data, + std::optional process_id = {}, std::optional user_id = {}) const; void SaveErrorReport(u64 title_id, ResultCode result, std::optional custom_text_main = {}, -- cgit v1.2.3