Browse Source
Merge pull request #5855 from Morph1984/bsd-fix-getsockopt-stub
bsd: Fix GetSockOpt stub
pull/15/merge
bunnei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
src/core/hle/service/sockets/bsd.cpp
|
|
@ -263,11 +263,15 @@ void BSD::GetSockOpt(Kernel::HLERequestContext& ctx) { |
|
|
|
|
|
|
|
|
LOG_WARNING(Service, "(STUBBED) called. fd={} level={} optname=0x{:x}", fd, level, optname); |
|
|
LOG_WARNING(Service, "(STUBBED) called. fd={} level={} optname=0x{:x}", fd, level, optname); |
|
|
|
|
|
|
|
|
|
|
|
std::vector<u8> optval(ctx.GetWriteBufferSize()); |
|
|
|
|
|
|
|
|
|
|
|
ctx.WriteBuffer(optval); |
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 5}; |
|
|
IPC::ResponseBuilder rb{ctx, 5}; |
|
|
rb.Push(RESULT_SUCCESS); |
|
|
rb.Push(RESULT_SUCCESS); |
|
|
rb.Push<s32>(-1); |
|
|
rb.Push<s32>(-1); |
|
|
rb.PushEnum(Errno::NOTCONN); |
|
|
rb.PushEnum(Errno::NOTCONN); |
|
|
rb.Push<u32>(0); |
|
|
|
|
|
|
|
|
rb.Push<u32>(static_cast<u32>(optval.size())); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void BSD::Listen(Kernel::HLERequestContext& ctx) { |
|
|
void BSD::Listen(Kernel::HLERequestContext& ctx) { |
|
|
|