summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-09-25 14:12:23 +0200
committerGitHub <noreply@github.com>2021-09-25 14:12:23 +0200
commit4f9d58621c3a19b6d2c60c67ba3425e92a934139 (patch)
tree218fbe4622eefa080e288d30dc917c8a09464ddc /src
parentMerge pull request #7082 from Morph1984/bsd-read (diff)
parentservice: bsd: Stub Read (diff)
downloadyuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.tar
yuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.tar.gz
yuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.tar.bz2
yuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.tar.lz
yuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.tar.xz
yuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.tar.zst
yuzu-4f9d58621c3a19b6d2c60c67ba3425e92a934139.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/sockets/bsd.cpp11
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) {