mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-24 21:55:46 +00:00
sfdnsres: ensure lp1 is not resolved
This commit is contained in:
parent
bbbe7c3b11
commit
56f7b53540
2 changed files with 21 additions and 2 deletions
|
@ -19,6 +19,12 @@ enum class ServerEnvironmentType : u8 {
|
|||
Dp,
|
||||
};
|
||||
|
||||
// This is nn::nsd::EnvironmentIdentifier
|
||||
struct EnvironmentIdentifier {
|
||||
std::array<u8, 8> identifier;
|
||||
};
|
||||
static_assert(sizeof(EnvironmentIdentifier) == 0x8);
|
||||
|
||||
NSD::NSD(Core::System& system_, const char* name) : ServiceFramework{system_, name} {
|
||||
// clang-format off
|
||||
static const FunctionInfo functions[] = {
|
||||
|
@ -101,8 +107,9 @@ void NSD::ResolveEx(HLERequestContext& ctx) {
|
|||
}
|
||||
|
||||
void NSD::GetEnvironmentIdentifier(HLERequestContext& ctx) {
|
||||
const std::string environment_identifier = "lp1";
|
||||
ctx.WriteBuffer(environment_identifier);
|
||||
constexpr EnvironmentIdentifier lp1 = {
|
||||
.identifier = {'l', 'p', '1', '\0', '\0', '\0', '\0', '\0'}};
|
||||
ctx.WriteBuffer(lp1);
|
||||
|
||||
IPC::ResponseBuilder rb{ctx, 2};
|
||||
rb.Push(ResultSuccess);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue