summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/sockets/nsd.cpp17
-rw-r--r--src/core/hle/service/sockets/nsd.h1
2 files changed, 17 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/nsd.cpp b/src/core/hle/service/sockets/nsd.cpp
index 0dfb0f166..36c6cd05c 100644
--- a/src/core/hle/service/sockets/nsd.cpp
+++ b/src/core/hle/service/sockets/nsd.cpp
@@ -10,6 +10,15 @@ namespace Service::Sockets {
10 10
11constexpr Result ResultOverflow{ErrorModule::NSD, 6}; 11constexpr Result ResultOverflow{ErrorModule::NSD, 6};
12 12
13// This is nn::oe::ServerEnvironmentType
14enum class ServerEnvironmentType : u8 {
15 Dd,
16 Lp,
17 Sd,
18 Sp,
19 Dp,
20};
21
13NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, name} { 22NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, name} {
14 // clang-format off 23 // clang-format off
15 static const FunctionInfo functions[] = { 24 static const FunctionInfo functions[] = {
@@ -36,7 +45,7 @@ NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, na
36 {62, nullptr, "DeleteSaveDataOfFsForTest"}, 45 {62, nullptr, "DeleteSaveDataOfFsForTest"},
37 {63, nullptr, "IsChangeEnvironmentIdentifierDisabled"}, 46 {63, nullptr, "IsChangeEnvironmentIdentifierDisabled"},
38 {64, nullptr, "SetWithoutDomainExchangeFqdns"}, 47 {64, nullptr, "SetWithoutDomainExchangeFqdns"},
39 {100, nullptr, "GetApplicationServerEnvironmentType"}, 48 {100, &NSD::GetApplicationServerEnvironmentType, "GetApplicationServerEnvironmentType"},
40 {101, nullptr, "SetApplicationServerEnvironmentType"}, 49 {101, nullptr, "SetApplicationServerEnvironmentType"},
41 {102, nullptr, "DeleteApplicationServerEnvironmentType"}, 50 {102, nullptr, "DeleteApplicationServerEnvironmentType"},
42 }; 51 };
@@ -94,6 +103,12 @@ void NSD::ResolveEx(HLERequestContext& ctx) {
94 rb.Push(ResultSuccess); 103 rb.Push(ResultSuccess);
95} 104}
96 105
106void NSD::GetApplicationServerEnvironmentType(HLERequestContext& ctx) {
107 IPC::ResponseBuilder rb{ctx, 3};
108 rb.Push(ResultSuccess);
109 rb.Push(static_cast<u32>(ServerEnvironmentType::Lp));
110}
111
97NSD::~NSD() = default; 112NSD::~NSD() = default;
98 113
99} // namespace Service::Sockets 114} // namespace Service::Sockets
diff --git a/src/core/hle/service/sockets/nsd.h b/src/core/hle/service/sockets/nsd.h
index a7379a8a9..57760a0c8 100644
--- a/src/core/hle/service/sockets/nsd.h
+++ b/src/core/hle/service/sockets/nsd.h
@@ -19,6 +19,7 @@ public:
19private: 19private:
20 void Resolve(HLERequestContext& ctx); 20 void Resolve(HLERequestContext& ctx);
21 void ResolveEx(HLERequestContext& ctx); 21 void ResolveEx(HLERequestContext& ctx);
22 void GetApplicationServerEnvironmentType(HLERequestContext& ctx);
22}; 23};
23 24
24} // namespace Service::Sockets 25} // namespace Service::Sockets