diff options
| author | 2018-02-20 10:27:32 +0300 | |
|---|---|---|
| committer | 2018-02-20 10:30:12 +0300 | |
| commit | 46931a95660e73acf971a26bb7f341af6e40d4c8 (patch) | |
| tree | f1bed354e38edb1732f321ad471d7fe80a2cbefa | |
| parent | Merge pull request #202 from bunnei/scheduler-cleanup (diff) | |
| download | yuzu-46931a95660e73acf971a26bb7f341af6e40d4c8.tar.gz yuzu-46931a95660e73acf971a26bb7f341af6e40d4c8.tar.xz yuzu-46931a95660e73acf971a26bb7f341af6e40d4c8.zip | |
Service/AOC: stub ListAddOnContent function
Diffstat (limited to '')
| -rw-r--r-- | src/common/logging/backend.cpp | 1 | ||||
| -rw-r--r-- | src/common/logging/log.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 25 | ||||
| -rw-r--r-- | src/core/hle/service/aoc/aoc_u.h | 3 |
4 files changed, 28 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 8274b2388..3a9a15a36 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -35,6 +35,7 @@ namespace Log { | |||
| 35 | SUB(Service, ACC) \ | 35 | SUB(Service, ACC) \ |
| 36 | SUB(Service, Audio) \ | 36 | SUB(Service, Audio) \ |
| 37 | SUB(Service, AM) \ | 37 | SUB(Service, AM) \ |
| 38 | SUB(Service, AOC) \ | ||
| 38 | SUB(Service, APM) \ | 39 | SUB(Service, APM) \ |
| 39 | SUB(Service, FS) \ | 40 | SUB(Service, FS) \ |
| 40 | SUB(Service, HID) \ | 41 | SUB(Service, HID) \ |
diff --git a/src/common/logging/log.h b/src/common/logging/log.h index 69472ef1a..498569c5c 100644 --- a/src/common/logging/log.h +++ b/src/common/logging/log.h | |||
| @@ -51,6 +51,7 @@ enum class Class : ClassType { | |||
| 51 | /// should have its own subclass. | 51 | /// should have its own subclass. |
| 52 | Service_ACC, ///< The ACC (Accounts) service | 52 | Service_ACC, ///< The ACC (Accounts) service |
| 53 | Service_AM, ///< The AM (Applet manager) service | 53 | Service_AM, ///< The AM (Applet manager) service |
| 54 | Service_AOC, ///< The AOC (AddOn Content) service | ||
| 54 | Service_APM, ///< The APM (Performance) service | 55 | Service_APM, ///< The APM (Performance) service |
| 55 | Service_Audio, ///< The Audio (Audio control) service | 56 | Service_Audio, ///< The Audio (Audio control) service |
| 56 | Service_FS, ///< The FS (Filesystem) service | 57 | Service_FS, ///< The FS (Filesystem) service |
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. |