diff --git a/src/core/hle/service/bsd/bsd_u.cpp b/src/core/hle/service/bsd/bsd_u.cpp index 04a6210a8c..d4ce29cd46 100644 --- a/src/core/hle/service/bsd/bsd_u.cpp +++ b/src/core/hle/service/bsd/bsd_u.cpp @@ -45,10 +45,21 @@ void BSD_U::Connect(Kernel::HLERequestContext& ctx) { rb.Push(0); // bsd errno } +void BSD_U::SendTo(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service, "(STUBBED) called"); + + IPC::RequestBuilder rb{ctx, 4}; + + rb.Push(RESULT_SUCCESS); + rb.Push(0); // ret + rb.Push(0); // bsd errno +} + BSD_U::BSD_U() : ServiceFramework("bsd:u") { static const FunctionInfo functions[] = { {0, &BSD_U::RegisterClient, "RegisterClient"}, {2, &BSD_U::Socket, "Socket"}, + {11, &BSD_U::SendTo, "SendTo"}, {14, &BSD_U::Connect, "Connect"} }; RegisterHandlers(functions); diff --git a/src/core/hle/service/bsd/bsd_u.h b/src/core/hle/service/bsd/bsd_u.h index bfe1fd2ca9..3dc0389cd3 100644 --- a/src/core/hle/service/bsd/bsd_u.h +++ b/src/core/hle/service/bsd/bsd_u.h @@ -19,6 +19,7 @@ private: void RegisterClient(Kernel::HLERequestContext& ctx); void Socket(Kernel::HLERequestContext& ctx); void Connect(Kernel::HLERequestContext& ctx); + void SendTo(Kernel::HLERequestContext& ctx); /// Id to use for the next open file descriptor. u32 next_fd = 1;