diff options
| author | 2023-02-19 14:42:12 -0500 | |
|---|---|---|
| committer | 2023-03-01 10:39:49 -0500 | |
| commit | 65be230fdda302b25447f2f09b06e3238bd09e79 (patch) | |
| tree | 68250d7bc8151041b236dcd79483df98938952cd /src/core/hle/service/aoc | |
| parent | sm:: remove unused member (diff) | |
| download | yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.gz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.tar.xz yuzu-65be230fdda302b25447f2f09b06e3238bd09e79.zip | |
service: move hle_ipc from kernel
Diffstat (limited to 'src/core/hle/service/aoc')
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 30 | ||||
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.h | 22 |
2 files changed, 26 insertions, 26 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index fed51cfd6..38c2138e8 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -14,9 +14,9 @@ | |||
| 14 | #include "core/file_sys/nca_metadata.h" | 14 | #include "core/file_sys/nca_metadata.h" |
| 15 | #include "core/file_sys/patch_manager.h" | 15 | #include "core/file_sys/patch_manager.h" |
| 16 | #include "core/file_sys/registered_cache.h" | 16 | #include "core/file_sys/registered_cache.h" |
| 17 | #include "core/hle/ipc_helpers.h" | ||
| 18 | #include "core/hle/kernel/k_event.h" | 17 | #include "core/hle/kernel/k_event.h" |
| 19 | #include "core/hle/service/aoc/aoc_u.h" | 18 | #include "core/hle/service/aoc/aoc_u.h" |
| 19 | #include "core/hle/service/ipc_helpers.h" | ||
| 20 | #include "core/hle/service/server_manager.h" | 20 | #include "core/hle/service/server_manager.h" |
| 21 | #include "core/loader/loader.h" | 21 | #include "core/loader/loader.h" |
| 22 | 22 | ||
| @@ -69,7 +69,7 @@ public: | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | private: | 71 | private: |
| 72 | void SetDefaultDeliveryTarget(Kernel::HLERequestContext& ctx) { | 72 | void SetDefaultDeliveryTarget(HLERequestContext& ctx) { |
| 73 | IPC::RequestParser rp{ctx}; | 73 | IPC::RequestParser rp{ctx}; |
| 74 | 74 | ||
| 75 | const auto unknown_1 = rp.Pop<u64>(); | 75 | const auto unknown_1 = rp.Pop<u64>(); |
| @@ -81,7 +81,7 @@ private: | |||
| 81 | rb.Push(ResultSuccess); | 81 | rb.Push(ResultSuccess); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | void SetDeliveryTarget(Kernel::HLERequestContext& ctx) { | 84 | void SetDeliveryTarget(HLERequestContext& ctx) { |
| 85 | IPC::RequestParser rp{ctx}; | 85 | IPC::RequestParser rp{ctx}; |
| 86 | 86 | ||
| 87 | const auto unknown_1 = rp.Pop<u64>(); | 87 | const auto unknown_1 = rp.Pop<u64>(); |
| @@ -93,7 +93,7 @@ private: | |||
| 93 | rb.Push(ResultSuccess); | 93 | rb.Push(ResultSuccess); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void GetPurchasedEventReadableHandle(Kernel::HLERequestContext& ctx) { | 96 | void GetPurchasedEventReadableHandle(HLERequestContext& ctx) { |
| 97 | LOG_WARNING(Service_AOC, "called"); | 97 | LOG_WARNING(Service_AOC, "called"); |
| 98 | 98 | ||
| 99 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 99 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| @@ -145,7 +145,7 @@ AOC_U::~AOC_U() { | |||
| 145 | service_context.CloseEvent(aoc_change_event); | 145 | service_context.CloseEvent(aoc_change_event); |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) { | 148 | void AOC_U::CountAddOnContent(HLERequestContext& ctx) { |
| 149 | struct Parameters { | 149 | struct Parameters { |
| 150 | u64 process_id; | 150 | u64 process_id; |
| 151 | }; | 151 | }; |
| @@ -172,7 +172,7 @@ void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 172 | [current](u64 tid) { return CheckAOCTitleIDMatchesBase(tid, current); }))); | 172 | [current](u64 tid) { return CheckAOCTitleIDMatchesBase(tid, current); }))); |
| 173 | } | 173 | } |
| 174 | 174 | ||
| 175 | void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | 175 | void AOC_U::ListAddOnContent(HLERequestContext& ctx) { |
| 176 | struct Parameters { | 176 | struct Parameters { |
| 177 | u32 offset; | 177 | u32 offset; |
| 178 | u32 count; | 178 | u32 count; |
| @@ -218,7 +218,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 218 | rb.Push(out_count); | 218 | rb.Push(out_count); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) { | 221 | void AOC_U::GetAddOnContentBaseId(HLERequestContext& ctx) { |
| 222 | struct Parameters { | 222 | struct Parameters { |
| 223 | u64 process_id; | 223 | u64 process_id; |
| 224 | }; | 224 | }; |
| @@ -245,7 +245,7 @@ void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) { | |||
| 245 | rb.Push(res.first->GetDLCBaseTitleId()); | 245 | rb.Push(res.first->GetDLCBaseTitleId()); |
| 246 | } | 246 | } |
| 247 | 247 | ||
| 248 | void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) { | 248 | void AOC_U::PrepareAddOnContent(HLERequestContext& ctx) { |
| 249 | struct Parameters { | 249 | struct Parameters { |
| 250 | s32 addon_index; | 250 | s32 addon_index; |
| 251 | u64 process_id; | 251 | u64 process_id; |
| @@ -262,7 +262,7 @@ void AOC_U::PrepareAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 262 | rb.Push(ResultSuccess); | 262 | rb.Push(ResultSuccess); |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | void AOC_U::GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx) { | 265 | void AOC_U::GetAddOnContentListChangedEvent(HLERequestContext& ctx) { |
| 266 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 266 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 267 | 267 | ||
| 268 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 268 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| @@ -270,7 +270,7 @@ void AOC_U::GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx) { | |||
| 270 | rb.PushCopyObjects(aoc_change_event->GetReadableEvent()); | 270 | rb.PushCopyObjects(aoc_change_event->GetReadableEvent()); |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | void AOC_U::GetAddOnContentListChangedEventWithProcessId(Kernel::HLERequestContext& ctx) { | 273 | void AOC_U::GetAddOnContentListChangedEventWithProcessId(HLERequestContext& ctx) { |
| 274 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 274 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 275 | 275 | ||
| 276 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 276 | IPC::ResponseBuilder rb{ctx, 2, 1}; |
| @@ -278,28 +278,28 @@ void AOC_U::GetAddOnContentListChangedEventWithProcessId(Kernel::HLERequestConte | |||
| 278 | rb.PushCopyObjects(aoc_change_event->GetReadableEvent()); | 278 | rb.PushCopyObjects(aoc_change_event->GetReadableEvent()); |
| 279 | } | 279 | } |
| 280 | 280 | ||
| 281 | void AOC_U::NotifyMountAddOnContent(Kernel::HLERequestContext& ctx) { | 281 | void AOC_U::NotifyMountAddOnContent(HLERequestContext& ctx) { |
| 282 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 282 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 283 | 283 | ||
| 284 | IPC::ResponseBuilder rb{ctx, 2}; | 284 | IPC::ResponseBuilder rb{ctx, 2}; |
| 285 | rb.Push(ResultSuccess); | 285 | rb.Push(ResultSuccess); |
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | void AOC_U::NotifyUnmountAddOnContent(Kernel::HLERequestContext& ctx) { | 288 | void AOC_U::NotifyUnmountAddOnContent(HLERequestContext& ctx) { |
| 289 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 289 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 290 | 290 | ||
| 291 | IPC::ResponseBuilder rb{ctx, 2}; | 291 | IPC::ResponseBuilder rb{ctx, 2}; |
| 292 | rb.Push(ResultSuccess); | 292 | rb.Push(ResultSuccess); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void AOC_U::CheckAddOnContentMountStatus(Kernel::HLERequestContext& ctx) { | 295 | void AOC_U::CheckAddOnContentMountStatus(HLERequestContext& ctx) { |
| 296 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 296 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 297 | 297 | ||
| 298 | IPC::ResponseBuilder rb{ctx, 2}; | 298 | IPC::ResponseBuilder rb{ctx, 2}; |
| 299 | rb.Push(ResultSuccess); | 299 | rb.Push(ResultSuccess); |
| 300 | } | 300 | } |
| 301 | 301 | ||
| 302 | void AOC_U::CreateEcPurchasedEventManager(Kernel::HLERequestContext& ctx) { | 302 | void AOC_U::CreateEcPurchasedEventManager(HLERequestContext& ctx) { |
| 303 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 303 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 304 | 304 | ||
| 305 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 305 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| @@ -307,7 +307,7 @@ void AOC_U::CreateEcPurchasedEventManager(Kernel::HLERequestContext& ctx) { | |||
| 307 | rb.PushIpcInterface<IPurchaseEventManager>(system); | 307 | rb.PushIpcInterface<IPurchaseEventManager>(system); |
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | void AOC_U::CreatePermanentEcPurchasedEventManager(Kernel::HLERequestContext& ctx) { | 310 | void AOC_U::CreatePermanentEcPurchasedEventManager(HLERequestContext& ctx) { |
| 311 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | 311 | LOG_WARNING(Service_AOC, "(STUBBED) called"); |
| 312 | 312 | ||
| 313 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 313 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h index 5e7087e50..12ccfeb6a 100644 --- a/src/core/hle/service/aoc/aoc_u.h +++ b/src/core/hle/service/aoc/aoc_u.h | |||
| @@ -22,17 +22,17 @@ public: | |||
| 22 | ~AOC_U() override; | 22 | ~AOC_U() override; |
| 23 | 23 | ||
| 24 | private: | 24 | private: |
| 25 | void CountAddOnContent(Kernel::HLERequestContext& ctx); | 25 | void CountAddOnContent(HLERequestContext& ctx); |
| 26 | void ListAddOnContent(Kernel::HLERequestContext& ctx); | 26 | void ListAddOnContent(HLERequestContext& ctx); |
| 27 | void GetAddOnContentBaseId(Kernel::HLERequestContext& ctx); | 27 | void GetAddOnContentBaseId(HLERequestContext& ctx); |
| 28 | void PrepareAddOnContent(Kernel::HLERequestContext& ctx); | 28 | void PrepareAddOnContent(HLERequestContext& ctx); |
| 29 | void GetAddOnContentListChangedEvent(Kernel::HLERequestContext& ctx); | 29 | void GetAddOnContentListChangedEvent(HLERequestContext& ctx); |
| 30 | void GetAddOnContentListChangedEventWithProcessId(Kernel::HLERequestContext& ctx); | 30 | void GetAddOnContentListChangedEventWithProcessId(HLERequestContext& ctx); |
| 31 | void NotifyMountAddOnContent(Kernel::HLERequestContext& ctx); | 31 | void NotifyMountAddOnContent(HLERequestContext& ctx); |
| 32 | void NotifyUnmountAddOnContent(Kernel::HLERequestContext& ctx); | 32 | void NotifyUnmountAddOnContent(HLERequestContext& ctx); |
| 33 | void CheckAddOnContentMountStatus(Kernel::HLERequestContext& ctx); | 33 | void CheckAddOnContentMountStatus(HLERequestContext& ctx); |
| 34 | void CreateEcPurchasedEventManager(Kernel::HLERequestContext& ctx); | 34 | void CreateEcPurchasedEventManager(HLERequestContext& ctx); |
| 35 | void CreatePermanentEcPurchasedEventManager(Kernel::HLERequestContext& ctx); | 35 | void CreatePermanentEcPurchasedEventManager(HLERequestContext& ctx); |
| 36 | 36 | ||
| 37 | std::vector<u64> add_on_content; | 37 | std::vector<u64> add_on_content; |
| 38 | KernelHelpers::ServiceContext service_context; | 38 | KernelHelpers::ServiceContext service_context; |