diff --git a/src/core/hle/service/bsd/bsd_u.cpp b/src/core/hle/service/bsd/bsd_u.cpp index 7391a4d6c2..04a6210a8c 100644 --- a/src/core/hle/service/bsd/bsd_u.cpp +++ b/src/core/hle/service/bsd/bsd_u.cpp @@ -35,10 +35,21 @@ void BSD_U::Socket(Kernel::HLERequestContext& ctx) { rb.Push(0); // bsd errno } +void BSD_U::Connect(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"} + {2, &BSD_U::Socket, "Socket"}, + {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 d99b1f9c4c..bfe1fd2ca9 100644 --- a/src/core/hle/service/bsd/bsd_u.h +++ b/src/core/hle/service/bsd/bsd_u.h @@ -18,6 +18,7 @@ public: private: void RegisterClient(Kernel::HLERequestContext& ctx); void Socket(Kernel::HLERequestContext& ctx); + void Connect(Kernel::HLERequestContext& ctx); /// Id to use for the next open file descriptor. u32 next_fd = 1;