aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar archshift <admin@archshift.com>2014-11-16 22:06:54 -0800
committerGravatar archshift <admin@archshift.com>2014-11-17 07:31:37 -0800
commite27f169acb30a0223a1ce494b2a8788ae3d51f2c (patch)
tree13bde0adae330b05f752fdc279047449aa5758c4
parent8717c79fe4718285f3ae53bc4e93e6051c9f4c33 (diff)
Add missing boss:U service, needed according to Nintendo Zone logs.
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/hle/service/boss_u.cpp28
-rw-r--r--src/core/hle/service/boss_u.h27
-rw-r--r--src/core/hle/service/service.cpp2
4 files changed, 59 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index f41d52e8..2315cc79 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -32,6 +32,7 @@ set(SRCS
hle/kernel/thread.cpp
hle/service/ac_u.cpp
hle/service/apt_u.cpp
+ hle/service/boss_u.cpp
hle/service/cfg_u.cpp
hle/service/dsp_dsp.cpp
hle/service/err_f.cpp
@@ -103,6 +104,7 @@ set(HEADERS
hle/kernel/thread.h
hle/service/ac_u.h
hle/service/apt_u.h
+ hle/service/boss_u.h
hle/service/cfg_u.h
hle/service/dsp_dsp.h
hle/service/err_f.h
diff --git a/src/core/hle/service/boss_u.cpp b/src/core/hle/service/boss_u.cpp
new file mode 100644
index 00000000..d398edc6
--- /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() {
+ }
+
+} // namespace
diff --git a/src/core/hle/service/boss_u.h b/src/core/hle/service/boss_u.h
new file mode 100644
index 00000000..af39b8e6
--- /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";
+ }
+ };
+
+} // namespace
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index bb0f80e9..ba729917 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);