VERY experimental Nintendo Switch 2 emulator
C++
service: Add empty interface for aoc:u.
bunneif9d160c819de
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex 95081f2608..cbf20823f7 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -49,6 +49,7 @@ set(SRCShle/romfs.cpphle/service/am/am.cpphle/service/am/applet_oe.cpp+ hle/service/aoc/aoc_u.cpphle/service/apm/apm.cpphle/service/dsp_dsp.cpphle/service/gsp_gpu.cpp@@ -140,6 +141,7 @@ set(HEADERShle/romfs.hhle/service/am/am.hhle/service/am/applet_oe.h+ hle/service/aoc/aoc_u.hhle/service/apm/apm.hhle/service/dsp_dsp.hhle/service/gsp_gpu.hdiff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cppnew file mode 100644index 0000000000..2096b707f9--- /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 Servicediff --git a/src/core/hle/service/aoc/aoc_u.h b/src/core/hle/service/aoc/aoc_u.hnew file mode 100644index 0000000000..43129e317b--- /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 Servicediff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex b5d798e26c..66125f52b4 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);