diff options
| author | 2021-01-31 01:02:32 -0500 | |
|---|---|---|
| committer | 2021-01-31 01:08:56 -0500 | |
| commit | 6cc769065d8e22b167013aa8f519dc6017ac8a2d (patch) | |
| tree | 278ad194185edcecfc18ae0f43c5a9ca8571a1f7 /src | |
| parent | Merge pull request #5852 from ameerj/event-fd-stub (diff) | |
| download | yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.gz yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.tar.xz yuzu-6cc769065d8e22b167013aa8f519dc6017ac8a2d.zip | |
bsd: Fix GetSockOpt stub
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/sockets/bsd.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp index 4ffb00902..9a5b32975 100644 --- a/src/core/hle/service/sockets/bsd.cpp +++ b/src/core/hle/service/sockets/bsd.cpp | |||
| @@ -263,11 +263,15 @@ void BSD::GetSockOpt(Kernel::HLERequestContext& ctx) { | |||
| 263 | 263 | ||
| 264 | LOG_WARNING(Service, "(STUBBED) called. fd={} level={} optname=0x{:x}", fd, level, optname); | 264 | LOG_WARNING(Service, "(STUBBED) called. fd={} level={} optname=0x{:x}", fd, level, optname); |
| 265 | 265 | ||
| 266 | std::vector<u8> optval(ctx.GetWriteBufferSize()); | ||
| 267 | |||
| 268 | ctx.WriteBuffer(optval); | ||
| 269 | |||
| 266 | IPC::ResponseBuilder rb{ctx, 5}; | 270 | IPC::ResponseBuilder rb{ctx, 5}; |
| 267 | rb.Push(RESULT_SUCCESS); | 271 | rb.Push(RESULT_SUCCESS); |
| 268 | rb.Push<s32>(-1); | 272 | rb.Push<s32>(-1); |
| 269 | rb.PushEnum(Errno::NOTCONN); | 273 | rb.PushEnum(Errno::NOTCONN); |
| 270 | rb.Push<u32>(0); | 274 | rb.Push<u32>(static_cast<u32>(optval.size())); |
| 271 | } | 275 | } |
| 272 | 276 | ||
| 273 | void BSD::Listen(Kernel::HLERequestContext& ctx) { | 277 | void BSD::Listen(Kernel::HLERequestContext& ctx) { |