diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc.h | 16 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u0.cpp | 26 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u0.h | 22 | ||||
| -rw-r--r-- | src/core/hle/service/service.cpp | 2 |
6 files changed, 86 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 2eab81ad6..20e41038b 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -37,6 +37,8 @@ set(SRCS | |||
| 37 | hle/kernel/wait_object.cpp | 37 | hle/kernel/wait_object.cpp |
| 38 | hle/lock.cpp | 38 | hle/lock.cpp |
| 39 | hle/romfs.cpp | 39 | hle/romfs.cpp |
| 40 | hle/service/acc/acc.cpp | ||
| 41 | hle/service/acc/acc_u0.cpp | ||
| 40 | hle/service/am/am.cpp | 42 | hle/service/am/am.cpp |
| 41 | hle/service/am/applet_oe.cpp | 43 | hle/service/am/applet_oe.cpp |
| 42 | hle/service/aoc/aoc_u.cpp | 44 | hle/service/aoc/aoc_u.cpp |
| @@ -124,6 +126,8 @@ set(HEADERS | |||
| 124 | hle/lock.h | 126 | hle/lock.h |
| 125 | hle/result.h | 127 | hle/result.h |
| 126 | hle/romfs.h | 128 | hle/romfs.h |
| 129 | hle/service/acc/acc.h | ||
| 130 | hle/service/acc/acc_u0.h | ||
| 127 | hle/service/am/am.h | 131 | hle/service/am/am.h |
| 128 | hle/service/am/applet_oe.h | 132 | hle/service/am/applet_oe.h |
| 129 | hle/service/aoc/aoc_u.h | 133 | hle/service/aoc/aoc_u.h |
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp new file mode 100644 index 000000000..5716577d6 --- /dev/null +++ b/src/core/hle/service/acc/acc.cpp | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "core/hle/service/acc/acc.h" | ||
| 6 | #include "core/hle/service/acc/acc_u0.h" | ||
| 7 | |||
| 8 | namespace Service { | ||
| 9 | namespace Account { | ||
| 10 | |||
| 11 | void InstallInterfaces(SM::ServiceManager& service_manager) { | ||
| 12 | std::make_shared<ACC_U0>()->InstallAsService(service_manager); | ||
| 13 | } | ||
| 14 | |||
| 15 | } // namespace Account | ||
| 16 | } // namespace Service | ||
diff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.h new file mode 100644 index 000000000..44d024f48 --- /dev/null +++ b/src/core/hle/service/acc/acc.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace Account { | ||
| 11 | |||
| 12 | /// Registers all ACC services with the specified service manager. | ||
| 13 | void InstallInterfaces(SM::ServiceManager& service_manager); | ||
| 14 | |||
| 15 | } // namespace Account | ||
| 16 | } // namespace Service | ||
diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cpp new file mode 100644 index 000000000..147f4e62e --- /dev/null +++ b/src/core/hle/service/acc/acc_u0.cpp | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include "common/logging/log.h" | ||
| 6 | #include "core/hle/ipc_helpers.h" | ||
| 7 | #include "core/hle/service/acc/acc_u0.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace Account { | ||
| 11 | |||
| 12 | void ACC_U0::InitializeApplicationInfo(Kernel::HLERequestContext& ctx) { | ||
| 13 | LOG_WARNING(Service, "(STUBBED) called"); | ||
| 14 | IPC::RequestBuilder rb{ctx, 2}; | ||
| 15 | rb.Push(RESULT_SUCCESS); | ||
| 16 | } | ||
| 17 | |||
| 18 | ACC_U0::ACC_U0() : ServiceFramework("acc:u0") { | ||
| 19 | static const FunctionInfo functions[] = { | ||
| 20 | {100, &ACC_U0::InitializeApplicationInfo, "InitializeApplicationInfo"}, | ||
| 21 | }; | ||
| 22 | RegisterHandlers(functions); | ||
| 23 | } | ||
| 24 | |||
| 25 | } // namespace Account | ||
| 26 | } // namespace Service | ||
diff --git a/src/core/hle/service/acc/acc_u0.h b/src/core/hle/service/acc/acc_u0.h new file mode 100644 index 000000000..ac243d5b8 --- /dev/null +++ b/src/core/hle/service/acc/acc_u0.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | // Copyright 2018 yuzu emulator team | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "core/hle/service/service.h" | ||
| 8 | |||
| 9 | namespace Service { | ||
| 10 | namespace Account { | ||
| 11 | |||
| 12 | class ACC_U0 final : public ServiceFramework<ACC_U0> { | ||
| 13 | public: | ||
| 14 | ACC_U0(); | ||
| 15 | ~ACC_U0() = default; | ||
| 16 | |||
| 17 | private: | ||
| 18 | void InitializeApplicationInfo(Kernel::HLERequestContext& ctx); | ||
| 19 | }; | ||
| 20 | |||
| 21 | } // namespace Account | ||
| 22 | } // namespace Service | ||
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index 44623d40f..fe76b381c 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include "core/hle/kernel/process.h" | 14 | #include "core/hle/kernel/process.h" |
| 15 | #include "core/hle/kernel/server_port.h" | 15 | #include "core/hle/kernel/server_port.h" |
| 16 | #include "core/hle/kernel/thread.h" | 16 | #include "core/hle/kernel/thread.h" |
| 17 | #include "core/hle/service/acc/acc.h" | ||
| 17 | #include "core/hle/service/am/am.h" | 18 | #include "core/hle/service/am/am.h" |
| 18 | #include "core/hle/service/aoc/aoc_u.h" | 19 | #include "core/hle/service/aoc/aoc_u.h" |
| 19 | #include "core/hle/service/apm/apm.h" | 20 | #include "core/hle/service/apm/apm.h" |
| @@ -164,6 +165,7 @@ void Init() { | |||
| 164 | SM::g_service_manager = std::make_shared<SM::ServiceManager>(); | 165 | SM::g_service_manager = std::make_shared<SM::ServiceManager>(); |
| 165 | SM::ServiceManager::InstallInterfaces(SM::g_service_manager); | 166 | SM::ServiceManager::InstallInterfaces(SM::g_service_manager); |
| 166 | 167 | ||
| 168 | Account::InstallInterfaces(*SM::g_service_manager); | ||
| 167 | AM::InstallInterfaces(*SM::g_service_manager); | 169 | AM::InstallInterfaces(*SM::g_service_manager); |
| 168 | AOC::InstallInterfaces(*SM::g_service_manager); | 170 | AOC::InstallInterfaces(*SM::g_service_manager); |
| 169 | APM::InstallInterfaces(*SM::g_service_manager); | 171 | APM::InstallInterfaces(*SM::g_service_manager); |