summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2020-12-08 10:56:13 -0500
committerGravatar Morph2020-12-08 13:39:19 -0500
commitdeff708cbea0409ba6487b3c7a326a436d821924 (patch)
tree7d17a774aa624f90bbdac7b55f278cb55c68b8c7
parentIPurchaseEventManager: Stub Set(Default)DeliveryTarget (diff)
downloadyuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.gz
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.tar.xz
yuzu-deff708cbea0409ba6487b3c7a326a436d821924.zip
IPurchaseEventManager: Implement GetPurchasedEventReadableHandle
- Used by Pokémon Café Mix - Used by DOOM: Eternal
-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:
56 static const FunctionInfo functions[] = { 56 static const FunctionInfo functions[] = {
57 {0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"}, 57 {0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"},
58 {1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"}, 58 {1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"},
59 {2, nullptr, "GetPurchasedEventReadableHandle"}, 59 {2, &IPurchaseEventManager::GetPurchasedEventReadableHandle, "GetPurchasedEventReadableHandle"},
60 {3, nullptr, "PopPurchasedProductInfo"}, 60 {3, nullptr, "PopPurchasedProductInfo"},
61 {4, nullptr, "PopPurchasedProductInfoWithUid"}, 61 {4, nullptr, "PopPurchasedProductInfoWithUid"},
62 }; 62 };
63 // clang-format on 63 // clang-format on
64 64
65 RegisterHandlers(functions); 65 RegisterHandlers(functions);
66
67 purchased_event = Kernel::WritableEvent::CreateEventPair(
68 system.Kernel(), "IPurchaseEventManager:PurchasedEvent");
66 } 69 }
67 70
68private: 71private:
@@ -89,6 +92,16 @@ private:
89 IPC::ResponseBuilder rb{ctx, 2}; 92 IPC::ResponseBuilder rb{ctx, 2};
90 rb.Push(RESULT_SUCCESS); 93 rb.Push(RESULT_SUCCESS);
91 } 94 }
95
96 void GetPurchasedEventReadableHandle(Kernel::HLERequestContext& ctx) {
97 LOG_WARNING(Service_AOC, "called");
98
99 IPC::ResponseBuilder rb{ctx, 2, 1};
100 rb.Push(RESULT_SUCCESS);
101 rb.PushCopyObjects(purchased_event.readable);
102 }
103
104 Kernel::EventPair purchased_event;
92}; 105};
93 106
94AOC_U::AOC_U(Core::System& system_) 107AOC_U::AOC_U(Core::System& system_)