mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-06 07:17:53 +00:00
1a954b2a59
Completely removes all usages of the global system instance within the services code by passing in the using system instance to the services.
45 lines
1.7 KiB
C++
45 lines
1.7 KiB
C++
// Copyright 2018 yuzu emulator team
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "core/hle/service/sockets/nsd.h"
|
|
|
|
namespace Service::Sockets {
|
|
|
|
NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, name} {
|
|
// clang-format off
|
|
static const FunctionInfo functions[] = {
|
|
{10, nullptr, "GetSettingName"},
|
|
{11, nullptr, "GetEnvironmentIdentifier"},
|
|
{12, nullptr, "GetDeviceId"},
|
|
{13, nullptr, "DeleteSettings"},
|
|
{14, nullptr, "ImportSettings"},
|
|
{15, nullptr, "SetChangeEnvironmentIdentifierDisabled"},
|
|
{20, nullptr, "Resolve"},
|
|
{21, nullptr, "ResolveEx"},
|
|
{30, nullptr, "GetNasServiceSetting"},
|
|
{31, nullptr, "GetNasServiceSettingEx"},
|
|
{40, nullptr, "GetNasRequestFqdn"},
|
|
{41, nullptr, "GetNasRequestFqdnEx"},
|
|
{42, nullptr, "GetNasApiFqdn"},
|
|
{43, nullptr, "GetNasApiFqdnEx"},
|
|
{50, nullptr, "GetCurrentSetting"},
|
|
{51, nullptr, "WriteTestParameter"},
|
|
{52, nullptr, "ReadTestParameter"},
|
|
{60, nullptr, "ReadSaveDataFromFsForTest"},
|
|
{61, nullptr, "WriteSaveDataToFsForTest"},
|
|
{62, nullptr, "DeleteSaveDataOfFsForTest"},
|
|
{63, nullptr, "IsChangeEnvironmentIdentifierDisabled"},
|
|
{64, nullptr, "SetWithoutDomainExchangeFqdns"},
|
|
{100, nullptr, "GetApplicationServerEnvironmentType"},
|
|
{101, nullptr, "SetApplicationServerEnvironmentType"},
|
|
{102, nullptr, "DeleteApplicationServerEnvironmentType"},
|
|
};
|
|
// clang-format on
|
|
|
|
RegisterHandlers(functions);
|
|
}
|
|
|
|
NSD::~NSD() = default;
|
|
|
|
} // namespace Service::Sockets
|