diff options
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 20 | ||||
| -rw-r--r-- | src/core/tools/renderdoc.cpp | 2 |
2 files changed, 19 insertions, 3 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; |
diff --git a/src/core/tools/renderdoc.cpp b/src/core/tools/renderdoc.cpp index 44d24822a..947fa6cb3 100644 --- a/src/core/tools/renderdoc.cpp +++ b/src/core/tools/renderdoc.cpp | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include "common/dynamic_library.h" | 7 | #include "common/dynamic_library.h" |
| 8 | #include "core/tools/renderdoc.h" | 8 | #include "core/tools/renderdoc.h" |
| 9 | 9 | ||
| 10 | #ifdef WIN32 | 10 | #ifdef _WIN32 |
| 11 | #include <windows.h> | 11 | #include <windows.h> |
| 12 | #else | 12 | #else |
| 13 | #include <dlfcn.h> | 13 | #include <dlfcn.h> |