From 7dd7c54add2743db1575015a2496e7c761adf823 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Fri, 24 Sep 2021 08:20:32 -0400 Subject: [PATCH] service: bsd: Stub Read - Used by Diablo II: Resurrected --- src/core/hle/service/sockets/bsd.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp index 95a70dfd39..b9e765f1d0 100644 --- a/src/core/hle/service/sockets/bsd.cpp +++ b/src/core/hle/service/sockets/bsd.cpp @@ -419,13 +419,12 @@ void BSD::Read(Kernel::HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; const s32 fd = rp.Pop(); - LOG_DEBUG(Service, "called. fd={} len={}", fd, ctx.GetWriteBufferSize()); + LOG_WARNING(Service, "(STUBBED) called. fd={} len={}", fd, ctx.GetWriteBufferSize()); - ExecuteWork(ctx, RecvWork{ - .fd = fd, - .flags = 0, - .message = std::vector(ctx.GetWriteBufferSize()), - }); + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(ResultSuccess); + rb.Push(0); // ret + rb.Push(0); // bsd errno } void BSD::Close(Kernel::HLERequestContext& ctx) {