diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 15 |
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 | ||
| 68 | private: | 71 | private: |
| @@ -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 | ||
| 94 | AOC_U::AOC_U(Core::System& system_) | 107 | AOC_U::AOC_U(Core::System& system_) |