summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2014-05-30 00:24:04 -0400
committerGravatar bunnei2014-05-30 00:24:04 -0400
commit55325dea4c85e1a91c6d37282322b466ef40ffac (patch)
treea9e15f4f150a7ddd596cd41a5c54f4a664101916 /src/core/hle
parentservice: cleaned up log messages (diff)
downloadyuzu-55325dea4c85e1a91c6d37282322b466ef40ffac.tar.gz
yuzu-55325dea4c85e1a91c6d37282322b466ef40ffac.tar.xz
yuzu-55325dea4c85e1a91c6d37282322b466ef40ffac.zip
hle: added stubbed service for ndm_u
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/ndm.cpp32
-rw-r--r--src/core/hle/service/ndm.h33
2 files changed, 65 insertions, 0 deletions
diff --git a/src/core/hle/service/ndm.cpp b/src/core/hle/service/ndm.cpp
new file mode 100644
index 000000000..671e9d4bd
--- /dev/null
+++ b/src/core/hle/service/ndm.cpp
@@ -0,0 +1,32 @@
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
7#include "core/hle/hle.h"
8#include "core/hle/service/ndm.h"
9
10////////////////////////////////////////////////////////////////////////////////////////////////////
11// Namespace NDM_U
12
13namespace NDM_U {
14
15const Interface::FunctionInfo FunctionTable[] = {
16 {0x00060040, NULL, "SuspendDaemons"},
17 {0x00080040, NULL, "DisableWifiUsage"},
18 {0x00090000, NULL, "EnableWifiUsage"},
19 {0x00140040, NULL, "OverrideDefaultDaemons"},
20};
21
22////////////////////////////////////////////////////////////////////////////////////////////////////
23// Interface class
24
25Interface::Interface() {
26 Register(FunctionTable, ARRAY_SIZE(FunctionTable));
27}
28
29Interface::~Interface() {
30}
31
32} // namespace
diff --git a/src/core/hle/service/ndm.h b/src/core/hle/service/ndm.h
new file mode 100644
index 000000000..fbe88fb8f
--- /dev/null
+++ b/src/core/hle/service/ndm.h
@@ -0,0 +1,33 @@
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 NDM
11
12// No idea what this is
13
14namespace NDM_U {
15
16class Interface : public Service::Interface {
17public:
18
19 Interface();
20
21 ~Interface();
22
23 /**
24 * Gets the string port name used by CTROS for the service
25 * @return Port name of service
26 */
27 const char *GetPortName() const {
28 return "ndm:u";
29 }
30
31};
32
33} // namespace