VERY experimental Nintendo Switch 2 emulator
C++
Add missing boss:U service, needed according to Nintendo Zone logs.
archshifte27f169acb30
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txtindex f41d52e801..2315cc7915 100644--- a/src/core/CMakeLists.txt+++ b/src/core/CMakeLists.txt@@ -32,6 +32,7 @@ set(SRCShle/kernel/thread.cpphle/service/ac_u.cpphle/service/apt_u.cpp+ hle/service/boss_u.cpphle/service/cfg_u.cpphle/service/dsp_dsp.cpphle/service/err_f.cpp@@ -103,6 +104,7 @@ set(HEADERShle/kernel/thread.hhle/service/ac_u.hhle/service/apt_u.h+ hle/service/boss_u.hhle/service/cfg_u.hhle/service/dsp_dsp.hhle/service/err_f.hdiff --git a/src/core/hle/service/boss_u.cpp b/src/core/hle/service/boss_u.cppnew file mode 100644index 0000000000..d398edc686--- /dev/null+++ b/src/core/hle/service/boss_u.cpp@@ -0,0 +1,28 @@+// Copyright 2014 Citra Emulator Project+// Licensed under GPLv2+// Refer to the license.txt file included.++#include "common/log.h"+#include "core/hle/hle.h"+#include "core/hle/service/boss_u.h"++////////////////////////////////////////////////////////////////////////////////////////////////////+// Namespace BOSS_U++namespace BOSS_U {++ const Interface::FunctionInfo FunctionTable[] = {+ {0x00020100, nullptr, "GetStorageInfo"},+ };++ ////////////////////////////////////////////////////////////////////////////////////////////////////+ // Interface class++ Interface::Interface() {+ Register(FunctionTable, ARRAY_SIZE(FunctionTable));+ }++ Interface::~Interface() {+ }++} // namespacediff --git a/src/core/hle/service/boss_u.h b/src/core/hle/service/boss_u.hnew file mode 100644index 0000000000..af39b8e652--- /dev/null+++ b/src/core/hle/service/boss_u.h@@ -0,0 +1,27 @@+// Copyright 2014 Citra Emulator Project+// Licensed under GPLv2+// Refer to the license.txt file included.++#pragma once++#include "core/hle/service/service.h"++////////////////////////////////////////////////////////////////////////////////////////////////////+// Namespace BOSS_U++namespace BOSS_U {++ class Interface : public Service::Interface {+ public:+ Interface();+ ~Interface();+ /**+ * Gets the string port name used by CTROS for the service+ * @return Port name of service+ */+ std::string GetPortName() const {+ return "boss:U";+ }+ };++} // namespacediff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cppindex bb0f80e986..ba7299170f 100644--- a/src/core/hle/service/service.cpp+++ b/src/core/hle/service/service.cpp@@ -8,6 +8,7 @@#include "core/hle/service/service.h"#include "core/hle/service/ac_u.h"#include "core/hle/service/apt_u.h"+#include "core/hle/service/boss_u.h"#include "core/hle/service/cfg_u.h"#include "core/hle/service/dsp_dsp.h"#include "core/hle/service/err_f.h"@@ -78,6 +79,7 @@ void Init() {g_manager->AddService(new SRV::Interface);g_manager->AddService(new AC_U::Interface);g_manager->AddService(new APT_U::Interface);+ g_manager->AddService(new BOSS_U::Interface);g_manager->AddService(new CFG_U::Interface);g_manager->AddService(new DSP_DSP::Interface);g_manager->AddService(new ERR_F::Interface);