mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
Merge pull request #7085 from Morph1984/bsd-read-stub
service: bsd: Stub Read
This commit is contained in:
commit
4f9d58621c
1 changed files with 5 additions and 6 deletions
|
@ -419,13 +419,12 @@ void BSD::Read(Kernel::HLERequestContext& ctx) {
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
const s32 fd = rp.Pop<s32>();
|
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{
|
IPC::ResponseBuilder rb{ctx, 4};
|
||||||
.fd = fd,
|
rb.Push(ResultSuccess);
|
||||||
.flags = 0,
|
rb.Push<u32>(0); // ret
|
||||||
.message = std::vector<u8>(ctx.GetWriteBufferSize()),
|
rb.Push<u32>(0); // bsd errno
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BSD::Close(Kernel::HLERequestContext& ctx) {
|
void BSD::Close(Kernel::HLERequestContext& ctx) {
|
||||||
|
|
Loading…
Reference in a new issue