diff options
author | Liam <byteslice@airmail.cc> | 2023-07-23 05:29:45 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2023-07-23 05:29:45 +0200 |
commit | 3e3294e1c25ab67f967d63c1232c579ad3c1e90b (patch) | |
tree | ac3b16adef97a2a4e6bbb38141b2dd76bf0887c1 /src/core/hle/service/sockets/sfdnsres.cpp | |
parent | Merge pull request #11042 from lat9nq/wayland-appimage (diff) | |
download | yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.tar yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.tar.gz yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.tar.bz2 yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.tar.lz yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.tar.xz yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.tar.zst yuzu-3e3294e1c25ab67f967d63c1232c579ad3c1e90b.zip |
Diffstat (limited to 'src/core/hle/service/sockets/sfdnsres.cpp')
-rw-r--r-- | src/core/hle/service/sockets/sfdnsres.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/sfdnsres.cpp b/src/core/hle/service/sockets/sfdnsres.cpp index 84cc79de8..22e4a6f49 100644 --- a/src/core/hle/service/sockets/sfdnsres.cpp +++ b/src/core/hle/service/sockets/sfdnsres.cpp @@ -24,7 +24,7 @@ SFDNSRES::SFDNSRES(Core::System& system_) : ServiceFramework{system_, "sfdnsres" {2, &SFDNSRES::GetHostByNameRequest, "GetHostByNameRequest"}, {3, nullptr, "GetHostByAddrRequest"}, {4, nullptr, "GetHostStringErrorRequest"}, - {5, nullptr, "GetGaiStringErrorRequest"}, + {5, &SFDNSRES::GetGaiStringErrorRequest, "GetGaiStringErrorRequest"}, {6, &SFDNSRES::GetAddrInfoRequest, "GetAddrInfoRequest"}, {7, nullptr, "GetNameInfoRequest"}, {8, nullptr, "RequestCancelHandleRequest"}, @@ -300,6 +300,20 @@ void SFDNSRES::GetAddrInfoRequest(HLERequestContext& ctx) { }); } +void SFDNSRES::GetGaiStringErrorRequest(HLERequestContext& ctx) { + struct InputParameters { + GetAddrInfoError gai_errno; + }; + IPC::RequestParser rp{ctx}; + auto input = rp.PopRaw<InputParameters>(); + + const std::string result = Translate(input.gai_errno); + ctx.WriteBuffer(result); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + void SFDNSRES::GetAddrInfoRequestWithOptions(HLERequestContext& ctx) { // Additional options are ignored auto [data_size, emu_gai_err] = GetAddrInfoRequestImpl(ctx); |