summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp29
1 files changed, 27 insertions, 2 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 4e668d062..6223e8fb2 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -54,8 +54,8 @@ public:
54 : ServiceFramework{system_, "IPurchaseEventManager"} { 54 : ServiceFramework{system_, "IPurchaseEventManager"} {
55 // clang-format off 55 // clang-format off
56 static const FunctionInfo functions[] = { 56 static const FunctionInfo functions[] = {
57 {0, nullptr, "SetDefaultDeliveryTarget"}, 57 {0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"},
58 {1, nullptr, "SetDeliveryTarget"}, 58 {1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"},
59 {2, nullptr, "GetPurchasedEventReadableHandle"}, 59 {2, nullptr, "GetPurchasedEventReadableHandle"},
60 {3, nullptr, "PopPurchasedProductInfo"}, 60 {3, nullptr, "PopPurchasedProductInfo"},
61 {4, nullptr, "PopPurchasedProductInfoWithUid"}, 61 {4, nullptr, "PopPurchasedProductInfoWithUid"},
@@ -64,6 +64,31 @@ public:
64 64
65 RegisterHandlers(functions); 65 RegisterHandlers(functions);
66 } 66 }
67
68private:
69 void SetDefaultDeliveryTarget(Kernel::HLERequestContext& ctx) {
70 IPC::RequestParser rp{ctx};
71
72 const auto unknown_1 = rp.Pop<u64>();
73 [[maybe_unused]] const auto unknown_2 = ctx.ReadBuffer();
74
75 LOG_WARNING(Service_AOC, "(STUBBED) called, unknown_1={}", unknown_1);
76
77 IPC::ResponseBuilder rb{ctx, 2};
78 rb.Push(RESULT_SUCCESS);
79 }
80
81 void SetDeliveryTarget(Kernel::HLERequestContext& ctx) {
82 IPC::RequestParser rp{ctx};
83
84 const auto unknown_1 = rp.Pop<u64>();
85 [[maybe_unused]] const auto unknown_2 = ctx.ReadBuffer();
86
87 LOG_WARNING(Service_AOC, "(STUBBED) called, unknown_1={}", unknown_1);
88
89 IPC::ResponseBuilder rb{ctx, 2};
90 rb.Push(RESULT_SUCCESS);
91 }
67}; 92};
68 93
69AOC_U::AOC_U(Core::System& system_) 94AOC_U::AOC_U(Core::System& system_)