diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 25 | ||||
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.h | 3 |
2 files changed, 26 insertions, 2 deletions
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index 260683201..430b2a7ad 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -2,16 +2,37 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/logging/log.h" | ||
| 6 | #include "core/hle/ipc_helpers.h" | ||
| 5 | #include "core/hle/service/aoc/aoc_u.h" | 7 | #include "core/hle/service/aoc/aoc_u.h" |
| 6 | 8 | ||
| 7 | namespace Service { | 9 | namespace Service { |
| 8 | namespace AOC { | 10 | namespace AOC { |
| 9 | 11 | ||
| 12 | AOC_U::AOC_U() : ServiceFramework("aoc:u") { | ||
| 13 | static const FunctionInfo functions[] = { | ||
| 14 | {0, nullptr, "CountAddOnContentByApplicationId"}, | ||
| 15 | {1, nullptr, "ListAddOnContentByApplicationId"}, | ||
| 16 | {2, nullptr, "CountAddOnContent"}, | ||
| 17 | {3, &AOC_U::ListAddOnContent, "ListAddOnContent"}, | ||
| 18 | {4, nullptr, "GetAddOnContentBaseIdByApplicationId"}, | ||
| 19 | {5, nullptr, "GetAddOnContentBaseId"}, | ||
| 20 | {6, nullptr, "PrepareAddOnContentByApplicationId"}, | ||
| 21 | {7, nullptr, "PrepareAddOnContent"}, | ||
| 22 | }; | ||
| 23 | RegisterHandlers(functions); | ||
| 24 | } | ||
| 25 | |||
| 26 | void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | ||
| 27 | IPC::ResponseBuilder rb{ctx, 4}; | ||
| 28 | rb.Push(RESULT_SUCCESS); | ||
| 29 | rb.Push<u64>(0); | ||
| 30 | LOG_WARNING(Service_AOC, "(STUBBED) called"); | ||
| 31 | } | ||
| 32 | |||
| 10 | void InstallInterfaces(SM::ServiceManager& service_manager) { | 33 | void InstallInterfaces(SM::ServiceManager& service_manager) { |
| 11 | std::make_shared<AOC_U>()->InstallAsService(service_manager); | 34 | std::make_shared<AOC_U>()->InstallAsService(service_manager); |
| 12 | } | 35 | } |
| 13 | 36 | ||
| 14 | AOC_U::AOC_U() : ServiceFramework("aoc:u") {} | ||
| 15 | |||
| 16 | } // namespace AOC | 37 | } // namespace AOC |
| 17 | } // namespace Service | 38 | } // namespace Service |
diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h index 0cbbf1e5d..4d6720a9d 100644 --- a/src/core/hle/service/aoc/aoc_u.h +++ b/src/core/hle/service/aoc/aoc_u.h | |||
| @@ -13,6 +13,9 @@ class AOC_U final : public ServiceFramework<AOC_U> { | |||
| 13 | public: | 13 | public: |
| 14 | AOC_U(); | 14 | AOC_U(); |
| 15 | ~AOC_U() = default; | 15 | ~AOC_U() = default; |
| 16 | |||
| 17 | private: | ||
| 18 | void ListAddOnContent(Kernel::HLERequestContext& ctx); | ||
| 16 | }; | 19 | }; |
| 17 | 20 | ||
| 18 | /// Registers all AOC services with the specified service manager. | 21 | /// Registers all AOC services with the specified service manager. |