mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
nsd: add GetApplicationServerEnvironmentType
This commit is contained in:
parent
5593bed08a
commit
8f1d48fda6
|
@ -10,6 +10,15 @@ namespace Service::Sockets {
|
||||||
|
|
||||||
constexpr Result ResultOverflow{ErrorModule::NSD, 6};
|
constexpr Result ResultOverflow{ErrorModule::NSD, 6};
|
||||||
|
|
||||||
|
// This is nn::oe::ServerEnvironmentType
|
||||||
|
enum class ServerEnvironmentType : u8 {
|
||||||
|
Dd,
|
||||||
|
Lp,
|
||||||
|
Sd,
|
||||||
|
Sp,
|
||||||
|
Dp,
|
||||||
|
};
|
||||||
|
|
||||||
NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, name} {
|
NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, name} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
|
@ -36,7 +45,7 @@ NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, na
|
||||||
{62, nullptr, "DeleteSaveDataOfFsForTest"},
|
{62, nullptr, "DeleteSaveDataOfFsForTest"},
|
||||||
{63, nullptr, "IsChangeEnvironmentIdentifierDisabled"},
|
{63, nullptr, "IsChangeEnvironmentIdentifierDisabled"},
|
||||||
{64, nullptr, "SetWithoutDomainExchangeFqdns"},
|
{64, nullptr, "SetWithoutDomainExchangeFqdns"},
|
||||||
{100, nullptr, "GetApplicationServerEnvironmentType"},
|
{100, &NSD::GetApplicationServerEnvironmentType, "GetApplicationServerEnvironmentType"},
|
||||||
{101, nullptr, "SetApplicationServerEnvironmentType"},
|
{101, nullptr, "SetApplicationServerEnvironmentType"},
|
||||||
{102, nullptr, "DeleteApplicationServerEnvironmentType"},
|
{102, nullptr, "DeleteApplicationServerEnvironmentType"},
|
||||||
};
|
};
|
||||||
|
@ -94,6 +103,12 @@ void NSD::ResolveEx(HLERequestContext& ctx) {
|
||||||
rb.Push(ResultSuccess);
|
rb.Push(ResultSuccess);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NSD::GetApplicationServerEnvironmentType(HLERequestContext& ctx) {
|
||||||
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
|
rb.Push(ResultSuccess);
|
||||||
|
rb.Push(static_cast<u32>(ServerEnvironmentType::Lp));
|
||||||
|
}
|
||||||
|
|
||||||
NSD::~NSD() = default;
|
NSD::~NSD() = default;
|
||||||
|
|
||||||
} // namespace Service::Sockets
|
} // namespace Service::Sockets
|
||||||
|
|
|
@ -19,6 +19,7 @@ public:
|
||||||
private:
|
private:
|
||||||
void Resolve(HLERequestContext& ctx);
|
void Resolve(HLERequestContext& ctx);
|
||||||
void ResolveEx(HLERequestContext& ctx);
|
void ResolveEx(HLERequestContext& ctx);
|
||||||
|
void GetApplicationServerEnvironmentType(HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Service::Sockets
|
} // namespace Service::Sockets
|
||||||
|
|
Loading…
Reference in a new issue