summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-12-08 16:56:13 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2020-12-08 19:39:19 +0100
commitdeff708cbea0409ba6487b3c7a326a436d821924 (patch)
tree7d17a774aa624f90bbdac7b55f278cb55c68b8c7 /src/core
parentIPurchaseEventManager: Stub Set(Default)DeliveryTarget (diff)
downloadyuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.gz
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.bz2
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.lz
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.xz
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.zst
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp
index 6223e8fb2..9c404db96 100644
--- a/src/core/hle/service/aoc/aoc_u.cpp
+++ b/src/core/hle/service/aoc/aoc_u.cpp
@@ -56,13 +56,16 @@ public:
static const FunctionInfo functions[] = {
{0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"},
{1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"},
- {2, nullptr, "GetPurchasedEventReadableHandle"},
+ {2, &IPurchaseEventManager::GetPurchasedEventReadableHandle, "GetPurchasedEventReadableHandle"},
{3, nullptr, "PopPurchasedProductInfo"},
{4, nullptr, "PopPurchasedProductInfoWithUid"},
};
// clang-format on
RegisterHandlers(functions);
+
+ purchased_event = Kernel::WritableEvent::CreateEventPair(
+ system.Kernel(), "IPurchaseEventManager:PurchasedEvent");
}
private:
@@ -89,6 +92,16 @@ private:
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
}
+
+ void GetPurchasedEventReadableHandle(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_AOC, "called");
+
+ IPC::ResponseBuilder rb{ctx, 2, 1};
+ rb.Push(RESULT_SUCCESS);
+ rb.PushCopyObjects(purchased_event.readable);
+ }
+
+ Kernel::EventPair purchased_event;
};
AOC_U::AOC_U(Core::System& system_)