aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/set/set.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-16 14:05:00 -0500
committerGitHub <noreply@github.com>2022-12-16 14:05:00 -0500
commitbbb202ceedf8c4054f6a602ad572ba8df33e315d (patch)
tree8b51f7711e7b698ca712c24b854f88a0022e1d9c /src/core/hle/service/set/set.cpp
parent789da737afe8e3b242d8adffb1444a663a78117d (diff)
parentc5f519e1e4d850ed582b073aff94cbf511f6b931 (diff)
Merge pull request #6354 from ogniK5377/device-name
Set: Allow setting device nickname
Diffstat (limited to 'src/core/hle/service/set/set.cpp')
-rw-r--r--src/core/hle/service/set/set.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp
index 4f1a8d6b7..16c5eaf75 100644
--- a/src/core/hle/service/set/set.cpp
+++ b/src/core/hle/service/set/set.cpp
@@ -191,6 +191,13 @@ void SET::GetKeyCodeMap2(Kernel::HLERequestContext& ctx) {
GetKeyCodeMapImpl(ctx);
}
+void SET::GetDeviceNickName(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_SET, "called");
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(ResultSuccess);
+ ctx.WriteBuffer(Settings::values.device_name.GetValue());
+}
+
SET::SET(Core::System& system_) : ServiceFramework{system_, "set"} {
// clang-format off
static const FunctionInfo functions[] = {
@@ -205,7 +212,7 @@ SET::SET(Core::System& system_) : ServiceFramework{system_, "set"} {
{8, &SET::GetQuestFlag, "GetQuestFlag"},
{9, &SET::GetKeyCodeMap2, "GetKeyCodeMap2"},
{10, nullptr, "GetFirmwareVersionForDebug"},
- {11, nullptr, "GetDeviceNickName"},
+ {11, &SET::GetDeviceNickName, "GetDeviceNickName"},
};
// clang-format on