summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2024-02-24 11:53:06 -0500
committerGravatar Liam2024-02-24 22:25:34 -0500
commitf045fa576b6dfbf13b65e69f15a4efd81622e2f5 (patch)
treeda70732d127aea1fe275db4bf0af0fa981c07536 /src
parentset: add GetPlatformRegion (diff)
downloadyuzu-f045fa576b6dfbf13b65e69f15a4efd81622e2f5.tar.gz
yuzu-f045fa576b6dfbf13b65e69f15a4efd81622e2f5.tar.xz
yuzu-f045fa576b6dfbf13b65e69f15a4efd81622e2f5.zip
erpt: stub report creation
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/erpt/erpt.cpp40
1 files changed, 34 insertions, 6 deletions
diff --git a/src/core/hle/service/erpt/erpt.cpp b/src/core/hle/service/erpt/erpt.cpp
index 39ae3a723..6b7eab5ef 100644
--- a/src/core/hle/service/erpt/erpt.cpp
+++ b/src/core/hle/service/erpt/erpt.cpp
@@ -18,7 +18,7 @@ public:
18 // clang-format off 18 // clang-format off
19 static const FunctionInfo functions[] = { 19 static const FunctionInfo functions[] = {
20 {0, C<&ErrorReportContext::SubmitContext>, "SubmitContext"}, 20 {0, C<&ErrorReportContext::SubmitContext>, "SubmitContext"},
21 {1, nullptr, "CreateReportV0"}, 21 {1, C<&ErrorReportContext::CreateReportV0>, "CreateReportV0"},
22 {2, nullptr, "SetInitialLaunchSettingsCompletionTime"}, 22 {2, nullptr, "SetInitialLaunchSettingsCompletionTime"},
23 {3, nullptr, "ClearInitialLaunchSettingsCompletionTime"}, 23 {3, nullptr, "ClearInitialLaunchSettingsCompletionTime"},
24 {4, nullptr, "UpdatePowerOnTime"}, 24 {4, nullptr, "UpdatePowerOnTime"},
@@ -28,7 +28,8 @@ public:
28 {8, nullptr, "ClearApplicationLaunchTime"}, 28 {8, nullptr, "ClearApplicationLaunchTime"},
29 {9, nullptr, "SubmitAttachment"}, 29 {9, nullptr, "SubmitAttachment"},
30 {10, nullptr, "CreateReportWithAttachments"}, 30 {10, nullptr, "CreateReportWithAttachments"},
31 {11, nullptr, "CreateReport"}, 31 {11, C<&ErrorReportContext::CreateReportV1>, "CreateReportV1"},
32 {12, C<&ErrorReportContext::CreateReport>, "CreateReport"},
32 {20, nullptr, "RegisterRunningApplet"}, 33 {20, nullptr, "RegisterRunningApplet"},
33 {21, nullptr, "UnregisterRunningApplet"}, 34 {21, nullptr, "UnregisterRunningApplet"},
34 {22, nullptr, "UpdateAppletSuspendedDuration"}, 35 {22, nullptr, "UpdateAppletSuspendedDuration"},
@@ -40,10 +41,37 @@ public:
40 } 41 }
41 42
42private: 43private:
43 Result SubmitContext(InBuffer<BufferAttr_HipcMapAlias> buffer_a, 44 Result SubmitContext(InBuffer<BufferAttr_HipcMapAlias> context_entry,
44 InBuffer<BufferAttr_HipcMapAlias> buffer_b) { 45 InBuffer<BufferAttr_HipcMapAlias> field_list) {
45 LOG_WARNING(Service_SET, "(STUBBED) called, buffer_a_size={}, buffer_b_size={}", 46 LOG_WARNING(Service_SET, "(STUBBED) called, context_entry_size={}, field_list_size={}",
46 buffer_a.size(), buffer_b.size()); 47 context_entry.size(), field_list.size());
48 R_SUCCEED();
49 }
50
51 Result CreateReportV0(u32 report_type, InBuffer<BufferAttr_HipcMapAlias> context_entry,
52 InBuffer<BufferAttr_HipcMapAlias> report_list,
53 InBuffer<BufferAttr_HipcMapAlias> report_meta_data) {
54 LOG_WARNING(Service_SET, "(STUBBED) called, report_type={:#x}", report_type);
55 R_SUCCEED();
56 }
57
58 Result CreateReportV1(u32 report_type, u32 unknown,
59 InBuffer<BufferAttr_HipcMapAlias> context_entry,
60 InBuffer<BufferAttr_HipcMapAlias> report_list,
61 InBuffer<BufferAttr_HipcMapAlias> report_meta_data) {
62 LOG_WARNING(Service_SET, "(STUBBED) called, report_type={:#x}, unknown={:#x}", report_type,
63 unknown);
64 R_SUCCEED();
65 }
66
67 Result CreateReport(u32 report_type, u32 unknown, u32 create_report_option_flag,
68 InBuffer<BufferAttr_HipcMapAlias> context_entry,
69 InBuffer<BufferAttr_HipcMapAlias> report_list,
70 InBuffer<BufferAttr_HipcMapAlias> report_meta_data) {
71 LOG_WARNING(
72 Service_SET,
73 "(STUBBED) called, report_type={:#x}, unknown={:#x}, create_report_option_flag={:#x}",
74 report_type, unknown, create_report_option_flag);
47 R_SUCCEED(); 75 R_SUCCEED();
48 } 76 }
49}; 77};