mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-24 15:37:10 +02:00
More stubs (#47)
* Stubs implementations Services Bsd, Nifm & SSL stubs implementations Objects IGeneralService, IRequest stubs implementations. Fake-Fix GetAvailableLanguageCodes stub too ^^! * More stubs - Fix SvcGetInfo loops by gdkchan. - Implement stub for Sfdnsres service. - Add more stubs for Bsd service. * Update ServiceSfdnsres.cs
This commit is contained in:
parent
7f0bee2ff8
commit
424e045940
4 changed files with 61 additions and 3 deletions
|
@ -13,8 +13,11 @@ namespace Ryujinx.Core.OsHle.IpcServices.Bsd
|
|||
{
|
||||
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||
{
|
||||
{ 0, Initialize },
|
||||
{ 1, StartMonitoring }
|
||||
{ 0, Initialize },
|
||||
{ 1, StartMonitoring },
|
||||
{ 2, Socket },
|
||||
{ 10, Send },
|
||||
{ 14, Connect }
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -56,5 +59,38 @@ namespace Ryujinx.Core.OsHle.IpcServices.Bsd
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Socket(u32 domain, u32 type, u32 protocol) -> (i32 ret, u32 bsd_errno)
|
||||
public long Socket(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write(0);
|
||||
Context.ResponseData.Write(0);
|
||||
|
||||
//Todo: Stub
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Connect(u32 socket, buffer<sockaddr, 0x21, 0>) -> (i32 ret, u32 bsd_errno)
|
||||
public long Connect(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write(0);
|
||||
Context.ResponseData.Write(0);
|
||||
|
||||
//Todo: Stub
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Send(u32 socket, u32 flags, buffer<i8, 0x21, 0>) -> (i32 ret, u32 bsd_errno)
|
||||
public long Send(ServiceCtx Context)
|
||||
{
|
||||
Context.ResponseData.Write(0);
|
||||
Context.ResponseData.Write(0);
|
||||
|
||||
//Todo: Stub
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue