diff options
| author | 2021-01-30 23:21:21 -0800 | |
|---|---|---|
| committer | 2021-01-30 23:21:21 -0800 | |
| commit | 1cc009a996a637ee15fe32e767f485858efb4ddb (patch) | |
| tree | e46915fa67187e25ec93f9ba02fe0ee505b88dda | |
| parent | Merge pull request #5851 from ameerj/pop-inv-stub (diff) | |
| parent | bsd: Fix GetSockOpt stub (diff) | |
| download | yuzu-1cc009a996a637ee15fe32e767f485858efb4ddb.tar.gz yuzu-1cc009a996a637ee15fe32e767f485858efb4ddb.tar.xz yuzu-1cc009a996a637ee15fe32e767f485858efb4ddb.zip | |
Merge pull request #5855 from Morph1984/bsd-fix-getsockopt-stub
bsd: Fix GetSockOpt stub
| -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) { |