diff options
author | bunnei <bunneidev@gmail.com> | 2017-12-28 21:24:05 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-12-28 21:24:05 +0100 |
commit | d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0 (patch) | |
tree | 4306b58a78b8d1e6405c6b75d26a11d454d3c79d /src | |
parent | service: Return proper result code for IPC::CommandType::Close. (diff) | |
download | yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.tar yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.tar.gz yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.tar.bz2 yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.tar.lz yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.tar.xz yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.tar.zst yuzu-d5995fd30ff362ce99f5a74a9cbf8d98066fcfb0.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/hle/service/aoc/aoc_u.cpp | 18 | ||||
-rw-r--r-- | src/core/hle/service/aoc/aoc_u.h | 22 | ||||
-rw-r--r-- | src/core/hle/service/service.cpp | 2 |
4 files changed, 44 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 95081f260..cbf20823f 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -49,6 +49,7 @@ set(SRCS hle/romfs.cpp hle/service/am/am.cpp hle/service/am/applet_oe.cpp + hle/service/aoc/aoc_u.cpp hle/service/apm/apm.cpp hle/service/dsp_dsp.cpp hle/service/gsp_gpu.cpp @@ -140,6 +141,7 @@ set(HEADERS hle/romfs.h hle/service/am/am.h hle/service/am/applet_oe.h + hle/service/aoc/aoc_u.h hle/service/apm/apm.h hle/service/dsp_dsp.h hle/service/gsp_gpu.h diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp new file mode 100644 index 000000000..2096b707f --- /dev/null +++ b/src/core/hle/service/aoc/aoc_u.cpp @@ -0,0 +1,18 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include <string> +#include "core/hle/service/aoc/aoc_u.h" + +namespace Service { +namespace AOC { + +void InstallInterfaces(SM::ServiceManager& service_manager) { + std::make_shared<AOC_U>()->InstallAsService(service_manager); +} + +AOC_U::AOC_U() : ServiceFramework("aoc:u") {} + +} // namespace AOC +} // namespace Service diff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.h new file mode 100644 index 000000000..43129e317 --- /dev/null +++ b/src/core/hle/service/aoc/aoc_u.h @@ -0,0 +1,22 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/service/service.h" + +namespace Service { +namespace AOC { + +class AOC_U final : public ServiceFramework<AOC_U> { +public: + AOC_U(); + ~AOC_U() = default; +}; + +/// Registers all LM services with the specified service manager. +void InstallInterfaces(SM::ServiceManager& service_manager); + +} // namespace AOC +} // namespace Service diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp index b5d798e26..66125f52b 100644 --- a/src/core/hle/service/service.cpp +++ b/src/core/hle/service/service.cpp @@ -16,6 +16,7 @@ #include "core/hle/kernel/server_session.h" #include "core/hle/kernel/thread.h" #include "core/hle/service/am/am.h" +#include "core/hle/service/aoc/aoc_u.h" #include "core/hle/service/apm/apm.h" #include "core/hle/service/dsp_dsp.h" #include "core/hle/service/gsp_gpu.h" @@ -171,6 +172,7 @@ void Init() { SM::ServiceManager::InstallInterfaces(SM::g_service_manager); AM::InstallInterfaces(*SM::g_service_manager); + AOC::InstallInterfaces(*SM::g_service_manager); APM::InstallInterfaces(*SM::g_service_manager); LM::InstallInterfaces(*SM::g_service_manager); |