summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-12-28 21:24:05 +0100
committerbunnei <bunneidev@gmail.com>2017-12-28 21:24:05 +0100
commitd5995fd30ff362ce99f5a74a9cbf8d98066fcfb0 (patch)
tree4306b58a78b8d1e6405c6b75d26a11d454d3c79d /src/core/hle
parentservice: Return proper result code for IPC::CommandType::Close. (diff)
downloadyuzu-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/core/hle')
-rw-r--r--src/core/hle/service/aoc/aoc_u.cpp18
-rw-r--r--src/core/hle/service/aoc/aoc_u.h22
-rw-r--r--src/core/hle/service/service.cpp2
3 files changed, 42 insertions, 0 deletions
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);