diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-09-24 14:20:32 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-09-25 14:04:33 +0200 |
commit | 7dd7c54add2743db1575015a2496e7c761adf823 (patch) | |
tree | 218fbe4622eefa080e288d30dc917c8a09464ddc /src/core/hle/service/sockets/bsd.cpp | |
parent | Merge pull request #7082 from Morph1984/bsd-read (diff) | |
download | yuzu-7dd7c54add2743db1575015a2496e7c761adf823.tar yuzu-7dd7c54add2743db1575015a2496e7c761adf823.tar.gz yuzu-7dd7c54add2743db1575015a2496e7c761adf823.tar.bz2 yuzu-7dd7c54add2743db1575015a2496e7c761adf823.tar.lz yuzu-7dd7c54add2743db1575015a2496e7c761adf823.tar.xz yuzu-7dd7c54add2743db1575015a2496e7c761adf823.tar.zst yuzu-7dd7c54add2743db1575015a2496e7c761adf823.zip |
Diffstat (limited to 'src/core/hle/service/sockets/bsd.cpp')
-rw-r--r-- | src/core/hle/service/sockets/bsd.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hle/service/sockets/bsd.cpp b/src/core/hle/service/sockets/bsd.cpp index 95a70dfd3..b9e765f1d 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<s32>(); - 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<u8>(ctx.GetWriteBufferSize()), - }); + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(ResultSuccess); + rb.Push<u32>(0); // ret + rb.Push<u32>(0); // bsd errno } void BSD::Close(Kernel::HLERequestContext& ctx) { |