summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-09-19 15:24:08 +0200
committerGitHub <noreply@github.com>2023-09-19 15:24:08 +0200
commitd7e8926ff6a449d1d9e55fb0dff482e4fd64360a (patch)
tree368a5c73d1d921f8f6565c24aee0ae912054c01f /src/core
parentMerge pull request #11258 from Squall-Leonhart/Z16_Assert_Fix (diff)
parentaoc: stub purchase info calls (diff)
downloadyuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar
yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.gz
yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.bz2
yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.lz
yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.xz
yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.tar.zst
yuzu-d7e8926ff6a449d1d9e55fb0dff482e4fd64360a.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp20
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 @@
namespace Service::AOC {
+constexpr Result ResultNoPurchasedProductInfoAvailable{ErrorModule::NIMShop, 400};
+
static bool CheckAOCTitleIDMatchesBase(u64 title_id, u64 base) {
return FileSys::GetBaseTitleID(title_id) == base;
}
@@ -54,8 +56,8 @@ public:
{0, &IPurchaseEventManager::SetDefaultDeliveryTarget, "SetDefaultDeliveryTarget"},
{1, &IPurchaseEventManager::SetDeliveryTarget, "SetDeliveryTarget"},
{2, &IPurchaseEventManager::GetPurchasedEventReadableHandle, "GetPurchasedEventReadableHandle"},
- {3, nullptr, "PopPurchasedProductInfo"},
- {4, nullptr, "PopPurchasedProductInfoWithUid"},
+ {3, &IPurchaseEventManager::PopPurchasedProductInfo, "PopPurchasedProductInfo"},
+ {4, &IPurchaseEventManager::PopPurchasedProductInfoWithUid, "PopPurchasedProductInfoWithUid"},
};
// clang-format on
@@ -101,6 +103,20 @@ private:
rb.PushCopyObjects(purchased_event->GetReadableEvent());
}
+ void PopPurchasedProductInfo(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_AOC, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultNoPurchasedProductInfoAvailable);
+ }
+
+ void PopPurchasedProductInfoWithUid(HLERequestContext& ctx) {
+ LOG_DEBUG(Service_AOC, "(STUBBED) called");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultNoPurchasedProductInfoAvailable);
+ }
+
KernelHelpers::ServiceContext service_context;
Kernel::KEvent* purchased_event;