summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/logging/backend.cpp1
-rw-r--r--src/common/logging/log.h1
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp25
-rw-r--r--src/core/hle/service/aoc/aoc_u.h3
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
7namespace Service { 9namespace Service {
8namespace AOC { 10namespace AOC {
9 11
12AOC_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
26void 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
10void InstallInterfaces(SM::ServiceManager& service_manager) { 33void 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
14AOC_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> {
13public: 13public:
14 AOC_U(); 14 AOC_U();
15 ~AOC_U() = default; 15 ~AOC_U() = default;
16
17private:
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.