Initial stubs

This commit is contained in:
Starlet 2018-07-13 21:37:59 -04:00
parent 3b00333b0c
commit b57193fff9
3 changed files with 56 additions and 2 deletions

View file

@ -19,6 +19,8 @@ namespace Ryujinx.HLE.OsHle.Services.Am
{ 21, GetDesiredLanguage },
{ 22, SetTerminateResult },
{ 23, GetDisplayVersion },
{ 25, ExtendSaveData },
{ 26, GetSaveDataSize },
{ 40, NotifyRunning },
{ 50, GetPseudoDeviceId },
{ 66, InitializeGamePlayRecording },
@ -81,6 +83,25 @@ namespace Ryujinx.HLE.OsHle.Services.Am
return 0;
}
public long ExtendSaveData(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
Context.ResponseData.Write(0x400L);
return 0;
}
public long GetSaveDataSize(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
Context.ResponseData.Write(0L);
Context.ResponseData.Write(0x200L);
return 0;
}
public long NotifyRunning(ServiceCtx Context)
{
Context.ResponseData.Write(1);

View file

@ -14,7 +14,9 @@ namespace Ryujinx.HLE.OsHle.Services.Nifm
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 4, CreateRequest }
{ 4, CreateRequest },
{ 5, GetCurrentNetworkProfile },
{ 12, GetCurrentIpAddress }
};
}
@ -29,5 +31,28 @@ namespace Ryujinx.HLE.OsHle.Services.Nifm
return 0;
}
public long GetCurrentNetworkProfile(ServiceCtx Context)
{
(long Position, long Size) = Context.Request.GetBufferType0x21();
Context.Ns.Log.PrintStub(LogClass.ServiceNifm, "Stubbed.");
for (int Index = 0; Index < Size; Index++)
{
Context.Memory.WriteByte(Position + Index, 0);
}
return 0;
}
public long GetCurrentIpAddress(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceNifm, "Stubbed.");
Context.ResponseData.Write(0);
return 0;
}
}
}

View file

@ -18,7 +18,8 @@ namespace Ryujinx.HLE.OsHle.Services.Pctl
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 1, Initialize }
{ 1, Initialize },
{ 1001, CheckFreeCommunicationPermission }
};
this.NeedInitialize = NeedInitialize;
@ -37,5 +38,12 @@ namespace Ryujinx.HLE.OsHle.Services.Pctl
return 0;
}
public long CheckFreeCommunicationPermission(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServicePctl, "Stubbed.");
return 0;
}
}
}