summaryrefslogtreecommitdiffstats
path: root/src/core/reporter.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-05-18 03:45:56 +0200
committerZach Hilman <zachhilman@gmail.com>2019-05-25 22:09:20 +0200
commit2dde8f5cfe81648d05d60285ab5b17a6f61c486e (patch)
tree7d9c44658779ad92d66c54069ec1a3fa4d437aed /src/core/reporter.h
parentqt: Make UI option for 'Reporting Services' temporary (diff)
downloadyuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.tar
yuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.tar.gz
yuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.tar.bz2
yuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.tar.lz
yuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.tar.xz
yuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.tar.zst
yuzu-2dde8f5cfe81648d05d60285ab5b17a6f61c486e.zip
Diffstat (limited to '')
-rw-r--r--src/core/reporter.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/core/reporter.h b/src/core/reporter.h
new file mode 100644
index 000000000..2f798ee16
--- /dev/null
+++ b/src/core/reporter.h
@@ -0,0 +1,53 @@
+// Copyright 2019 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <optional>
+#include <vector>
+#include "common/common_types.h"
+#include "core/hle/result.h"
+
+namespace Kernel {
+class HLERequestContext;
+} // namespace Kernel
+
+namespace Core {
+
+class Reporter {
+public:
+ Reporter();
+ ~Reporter();
+
+ void SaveCrashReport(u64 title_id, ResultCode result, u64 set_flags, u64 entry_point, u64 sp,
+ u64 pc, u64 pstate, u64 afsr0, u64 afsr1, u64 esr, u64 far,
+ const std::array<u64, 31>& registers, const std::array<u64, 32>& backtrace,
+ u32 backtrace_size, const std::string& arch, u32 unk10) const;
+
+ void SaveSvcBreakReport(u32 type, bool signal_debugger, u64 info1, u64 info2,
+ std::optional<std::vector<u8>> resolved_buffer = {}) const;
+
+ void SaveUnimplementedFunctionReport(Kernel::HLERequestContext& ctx, u32 command_id,
+ const std::string& name,
+ const std::string& service_name) const;
+
+ void SaveUnimplementedAppletReport(u32 applet_id, u32 common_args_version, u32 library_version,
+ u32 theme_color, bool startup_sound, u64 system_tick,
+ std::vector<std::vector<u8>> normal_channel,
+ std::vector<std::vector<u8>> interactive_channel) const;
+
+ void SavePlayReport(u64 title_id, u64 unk1, std::vector<std::vector<u8>> data,
+ std::optional<u128> user_id = {}) const;
+
+ void SaveErrorReport(u64 title_id, ResultCode result,
+ std::optional<std::string> custom_text_main = {},
+ std::optional<std::string> custom_text_detail = {}) const;
+
+ void SaveUserReport() const;
+
+private:
+ bool IsReportingEnabled() const;
+};
+
+} // namespace Core