|
|
@ -3,6 +3,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "common/assert.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
|
|
|
|
#include "common/settings.h"
|
|
|
|
#include "core/file_sys/errors.h"
|
|
|
|
#include "core/file_sys/errors.h"
|
|
|
|
#include "core/file_sys/system_archive/system_version.h"
|
|
|
|
#include "core/file_sys/system_archive/system_version.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
@ -176,6 +177,13 @@ void SET_SYS::GetSettingsItemValue(Kernel::HLERequestContext& ctx) {
|
|
|
|
rb.Push(response);
|
|
|
|
rb.Push(response);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SET_SYS::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_SYS::SET_SYS(Core::System& system_) : ServiceFramework{system_, "set:sys"} {
|
|
|
|
SET_SYS::SET_SYS(Core::System& system_) : ServiceFramework{system_, "set:sys"} {
|
|
|
|
// clang-format off
|
|
|
|
// clang-format off
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
@ -253,7 +261,7 @@ SET_SYS::SET_SYS(Core::System& system_) : ServiceFramework{system_, "set:sys"} {
|
|
|
|
{74, nullptr, "SetWirelessLanEnableFlag"},
|
|
|
|
{74, nullptr, "SetWirelessLanEnableFlag"},
|
|
|
|
{75, nullptr, "GetInitialLaunchSettings"},
|
|
|
|
{75, nullptr, "GetInitialLaunchSettings"},
|
|
|
|
{76, nullptr, "SetInitialLaunchSettings"},
|
|
|
|
{76, nullptr, "SetInitialLaunchSettings"},
|
|
|
|
{77, nullptr, "GetDeviceNickName"},
|
|
|
|
{77, &SET_SYS::GetDeviceNickName, "GetDeviceNickName"},
|
|
|
|
{78, nullptr, "SetDeviceNickName"},
|
|
|
|
{78, nullptr, "SetDeviceNickName"},
|
|
|
|
{79, nullptr, "GetProductModel"},
|
|
|
|
{79, nullptr, "GetProductModel"},
|
|
|
|
{80, nullptr, "GetLdnChannel"},
|
|
|
|
{80, nullptr, "GetLdnChannel"},
|
|
|
|