diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-24 19:47:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 19:47:02 +0200 |
commit | bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631 (patch) | |
tree | 72affecc786edacc5a66c362235e4c73520783dd /src/core/hle/service/sockets/nsd.cpp | |
parent | Merge pull request #11136 from liamwhite/sp3shader (diff) | |
parent | core: implement GetGaiStringErrorRequest, IContextRegistrar (diff) | |
download | yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.tar yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.tar.gz yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.tar.bz2 yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.tar.lz yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.tar.xz yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.tar.zst yuzu-bb0edb53aeb227eec7ceddd7bfcdb6c5ed0f9631.zip |
Diffstat (limited to 'src/core/hle/service/sockets/nsd.cpp')
-rw-r--r-- | src/core/hle/service/sockets/nsd.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/nsd.cpp b/src/core/hle/service/sockets/nsd.cpp index 36c6cd05c..5dfcaabb1 100644 --- a/src/core/hle/service/sockets/nsd.cpp +++ b/src/core/hle/service/sockets/nsd.cpp @@ -24,7 +24,7 @@ NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, na static const FunctionInfo functions[] = { {5, nullptr, "GetSettingUrl"}, {10, nullptr, "GetSettingName"}, - {11, nullptr, "GetEnvironmentIdentifier"}, + {11, &NSD::GetEnvironmentIdentifier, "GetEnvironmentIdentifier"}, {12, nullptr, "GetDeviceId"}, {13, nullptr, "DeleteSettings"}, {14, nullptr, "ImportSettings"}, @@ -103,6 +103,14 @@ void NSD::ResolveEx(HLERequestContext& ctx) { rb.Push(ResultSuccess); } +void NSD::GetEnvironmentIdentifier(HLERequestContext& ctx) { + const std::string environment_identifier = "lp1"; + ctx.WriteBuffer(environment_identifier); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + void NSD::GetApplicationServerEnvironmentType(HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 3}; rb.Push(ResultSuccess); |