core: Add Reporter class to take/save reports

This commit is contained in:
Zach Hilman 2019-05-17 21:45:56 -04:00
parent 6f0ee45b5c
commit 2dde8f5cfe
5 changed files with 416 additions and 1 deletions

View file

@ -34,6 +34,7 @@
#include "core/hle/service/sm/sm.h"
#include "core/loader/loader.h"
#include "core/perf_stats.h"
#include "core/reporter.h"
#include "core/settings.h"
#include "core/telemetry_session.h"
#include "file_sys/cheat_engine.h"
@ -271,6 +272,7 @@ struct System::Impl {
std::unique_ptr<Core::TelemetrySession> telemetry_session;
std::map<VAddr, std::string, std::greater<>> modules;
Reporter reporter;
ResultStatus status = ResultStatus::Success;
std::string status_details = "";
@ -519,6 +521,10 @@ const std::map<VAddr, std::string, std::greater<>>& System::GetRegisteredNSOModu
return impl->modules;
}
const Reporter& System::GetReporter() const {
return impl->reporter;
}
System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) {
return impl->Init(*this, emu_window);
}