summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2018-02-20 10:45:50 -0500
committerGravatar GitHub2018-02-20 10:45:50 -0500
commit6a2197806ef8ca045f43f340255b8e8195efe4e4 (patch)
tree4a94d252127f784e19466f070c96e402ea0d135c /src/core
parentMerge pull request #205 from bunnei/more-puyo-stubs (diff)
parentService/AOC: stub ListAddOnContent function (diff)
downloadyuzu-6a2197806ef8ca045f43f340255b8e8195efe4e4.tar.gz
yuzu-6a2197806ef8ca045f43f340255b8e8195efe4e4.tar.xz
yuzu-6a2197806ef8ca045f43f340255b8e8195efe4e4.zip
Merge pull request #206 from mailwl/aoc-listaddoncontent
Service/AOC: stub ListAddOnContent function
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp25
-rw-r--r--src/core/hle/service/aoc/aoc_u.h3
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
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.