diff options
| author | 2023-09-19 09:24:08 -0400 | |
|---|---|---|
| committer | 2023-09-19 09:24:08 -0400 | |
| commit | d7e8926ff6a449d1d9e55fb0dff482e4fd64360a (patch) | |
| tree | 368a5c73d1d921f8f6565c24aee0ae912054c01f /src | |
| parent | Merge pull request #11258 from Squall-Leonhart/Z16_Assert_Fix (diff) | |
| parent | aoc: stub purchase info calls (diff) | |
| download | yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.gz yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.xz yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.zip | |
Merge pull request #11540 from liamwhite/aoc-ec
aoc: stub purchase info calls
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index 38c2138e8..7075ab800 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -22,6 +22,8 @@ | |||
| 22 | 22 | ||
| 23 | namespace Service::AOC { | 23 | namespace Service::AOC { |
| 24 | 24 | ||
| 25 | constexpr Result ResultNoPurchasedProductInfoAvailable{ErrorModule::NIMShop, 400}; | ||
| 26 | |||
| 25 | static bool CheckAOCTitleIDMatchesBase(u64 title_id, u64 base) { | 27 | static bool CheckAOCTitleIDMatchesBase(u64 title_id, u64 base) { |
| 26 | return FileSys::GetBaseTitleID(title_id) == base; | 28 | return FileSys::GetBaseTitleID(title_id) == base; |
| 27 | } | 29 | } |
| @@ -54,8 +56,8 @@ public: | |||
| 54 | {0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"}, | 56 | {0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"}, |
| 55 | {1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"}, | 57 | {1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"}, |
| 56 | {2, &IPurchaseEventManager::GetPurchasedEventReadableHandle, "GetPurchasedEventReadableHandle"}, | 58 | {2, &IPurchaseEventManager::GetPurchasedEventReadableHandle, "GetPurchasedEventReadableHandle"}, |
| 57 | {3, nullptr, "PopPurchasedProductInfo"}, | 59 | {3, &IPurchaseEventManager::PopPurchasedProductInfo, "PopPurchasedProductInfo"}, |
| 58 | {4, nullptr, "PopPurchasedProductInfoWithUid"}, | 60 | {4, &IPurchaseEventManager::PopPurchasedProductInfoWithUid, "PopPurchasedProductInfoWithUid"}, |
| 59 | }; | 61 | }; |
| 60 | // clang-format on | 62 | // clang-format on |
| 61 | 63 | ||
| @@ -101,6 +103,20 @@ private: | |||
| 101 | rb.PushCopyObjects(purchased_event->GetReadableEvent()); | 103 | rb.PushCopyObjects(purchased_event->GetReadableEvent()); |
| 102 | } | 104 | } |
| 103 | 105 | ||
| 106 | void PopPurchasedProductInfo(HLERequestContext& ctx) { | ||
| 107 | LOG_DEBUG(Service_AOC, "(STUBBED) called"); | ||
| 108 | |||
| 109 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 110 | rb.Push(ResultNoPurchasedProductInfoAvailable); | ||
| 111 | } | ||
| 112 | |||
| 113 | void PopPurchasedProductInfoWithUid(HLERequestContext& ctx) { | ||
| 114 | LOG_DEBUG(Service_AOC, "(STUBBED) called"); | ||
| 115 | |||
| 116 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 117 | rb.Push(ResultNoPurchasedProductInfoAvailable); | ||
| 118 | } | ||
| 119 | |||
| 104 | KernelHelpers::ServiceContext service_context; | 120 | KernelHelpers::ServiceContext service_context; |
| 105 | 121 | ||
| 106 | Kernel::KEvent* purchased_event; | 122 | Kernel::KEvent* purchased_event; |