summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-12-08 16:55:44 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-12-08 19:39:13 +0100
commita9cfe06aaf3fbaf7e16c31f80a75115a07f0af80 (patch)
tree207aeba85989cb70b48bfeb89103e7f11735331a /src/core/hle
parentaoc_u: Stub Create(Permanent)EcPurchasedEventManager (diff)
downloadyuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.tar
yuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.tar.gz
yuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.tar.bz2
yuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.tar.lz
yuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.tar.xz
yuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.tar.zst
yuzu-a9cfe06aaf3fbaf7e16c31f80a75115a07f0af80.zip
Diffstat (limited to 'src/core/hle')
-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:
: ServiceFramework{system_, "IPurchaseEventManager"} {
// clang-format off
static const FunctionInfo functions[] = {
- {0, nullptr, "SetDefaultDeliveryTarget"},
- {1, nullptr, "SetDeliveryTarget"},
+ {0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"},
+ {1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"},
{2, nullptr, "GetPurchasedEventReadableHandle"},
{3, nullptr, "PopPurchasedProductInfo"},
{4, nullptr, "PopPurchasedProductInfoWithUid"},
@@ -64,6 +64,31 @@ public:
RegisterHandlers(functions);
}
+
+private:
+ void SetDefaultDeliveryTarget(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+
+ const auto unknown_1 = rp.Pop<u64>();
+ [[maybe_unused]] const auto unknown_2 = ctx.ReadBuffer();
+
+ LOG_WARNING(Service_AOC, "(STUBBED) called, unknown_1={}", unknown_1);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
+
+ void SetDeliveryTarget(Kernel::HLERequestContext& ctx) {
+ IPC::RequestParser rp{ctx};
+
+ const auto unknown_1 = rp.Pop<u64>();
+ [[maybe_unused]] const auto unknown_2 = ctx.ReadBuffer();
+
+ LOG_WARNING(Service_AOC, "(STUBBED) called, unknown_1={}", unknown_1);
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
};
AOC_U::AOC_U(Core::System& system_)