summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar archshift2014-11-16 22:06:54 -0800
committerGravatar archshift2014-11-17 07:31:37 -0800
commite27f169acb30a0223a1ce494b2a8788ae3d51f2c (patch)
tree13bde0adae330b05f752fdc279047449aa5758c4 /src/core/hle
parentMerge pull request #195 from lioncash/control (diff)
downloadyuzu-e27f169acb30a0223a1ce494b2a8788ae3d51f2c.tar.gz
yuzu-e27f169acb30a0223a1ce494b2a8788ae3d51f2c.tar.xz
yuzu-e27f169acb30a0223a1ce494b2a8788ae3d51f2c.zip
Add missing boss:U service, needed according to Nintendo Zone logs.
Diffstat (limited to 'src/core/hle')
-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
3 files changed, 57 insertions, 0 deletions
diff --git a/src/core/hle/service/boss_u.cpp b/src/core/hle/service/boss_u.cpp
new file mode 100644
index 000000000..d398edc68
--- /dev/null
+++ b/src/core/hle/service/boss_u.cpp
@@ -0,0 +1,28 @@
1// Copyright 2014 Citra Emulator Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#include "common/log.h"
6#include "core/hle/hle.h"
7#include "core/hle/service/boss_u.h"
8
9////////////////////////////////////////////////////////////////////////////////////////////////////
10// Namespace BOSS_U
11
12namespace BOSS_U {
13
14 const Interface::FunctionInfo FunctionTable[] = {
15 {0x00020100, nullptr, "GetStorageInfo"},
16 };
17
18 ////////////////////////////////////////////////////////////////////////////////////////////////////
19 // Interface class
20
21 Interface::Interface() {
22 Register(FunctionTable, ARRAY_SIZE(FunctionTable));
23 }
24
25 Interface::~Interface() {
26 }
27
28} // namespace
diff --git a/src/core/hle/service/boss_u.h b/src/core/hle/service/boss_u.h
new file mode 100644
index 000000000..af39b8e65
--- /dev/null
+++ b/src/core/hle/service/boss_u.h
@@ -0,0 +1,27 @@
1// Copyright 2014 Citra Emulator Project
2// Licensed under GPLv2
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include "core/hle/service/service.h"
8
9////////////////////////////////////////////////////////////////////////////////////////////////////
10// Namespace BOSS_U
11
12namespace BOSS_U {
13
14 class Interface : public Service::Interface {
15 public:
16 Interface();
17 ~Interface();
18 /**
19 * Gets the string port name used by CTROS for the service
20 * @return Port name of service
21 */
22 std::string GetPortName() const {
23 return "boss:U";
24 }
25 };
26
27} // namespace
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index bb0f80e98..ba7299170 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -8,6 +8,7 @@
8#include "core/hle/service/service.h" 8#include "core/hle/service/service.h"
9#include "core/hle/service/ac_u.h" 9#include "core/hle/service/ac_u.h"
10#include "core/hle/service/apt_u.h" 10#include "core/hle/service/apt_u.h"
11#include "core/hle/service/boss_u.h"
11#include "core/hle/service/cfg_u.h" 12#include "core/hle/service/cfg_u.h"
12#include "core/hle/service/dsp_dsp.h" 13#include "core/hle/service/dsp_dsp.h"
13#include "core/hle/service/err_f.h" 14#include "core/hle/service/err_f.h"
@@ -78,6 +79,7 @@ void Init() {
78 g_manager->AddService(new SRV::Interface); 79 g_manager->AddService(new SRV::Interface);
79 g_manager->AddService(new AC_U::Interface); 80 g_manager->AddService(new AC_U::Interface);
80 g_manager->AddService(new APT_U::Interface); 81 g_manager->AddService(new APT_U::Interface);
82 g_manager->AddService(new BOSS_U::Interface);
81 g_manager->AddService(new CFG_U::Interface); 83 g_manager->AddService(new CFG_U::Interface);
82 g_manager->AddService(new DSP_DSP::Interface); 84 g_manager->AddService(new DSP_DSP::Interface);
83 g_manager->AddService(new ERR_F::Interface); 85 g_manager->AddService(new ERR_F::Interface);