forked from Mirror/Ryujinx
[IApplicationFunctions/INvDrvServices] Stub GetPseudoDeviceId, FinishInitialize and add more pctl service names. (#127)
* [INvDrvServices] Stub FinishInitialize * [IApplicationFunctions] Stub GetPseudoDeviceId * I need to proofread my shit... * Also add more pctl service names
This commit is contained in:
parent
30829fce52
commit
cb1cf489f9
3 changed files with 38 additions and 10 deletions
|
@ -20,7 +20,8 @@ namespace Ryujinx.Core.OsHle.Services.Am
|
|||
{ 21, GetDesiredLanguage },
|
||||
{ 22, SetTerminateResult },
|
||||
{ 23, GetDisplayVersion },
|
||||
{ 40, NotifyRunning }
|
||||
{ 40, NotifyRunning },
|
||||
{ 50, GetPseudoDeviceId }
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -88,6 +89,16 @@ namespace Ryujinx.Core.OsHle.Services.Am
|
|||
return 0;
|
||||
}
|
||||
|
||||
public long GetPseudoDeviceId(ServiceCtx Context)
|
||||
{
|
||||
Context.Ns.Log.PrintStub(LogClass.ServiceAm, "Stubbed.");
|
||||
|
||||
Context.ResponseData.Write(0L);
|
||||
Context.ResponseData.Write(0L);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private byte[] MakeLaunchParams()
|
||||
{
|
||||
//Size needs to be at least 0x88 bytes otherwise application errors.
|
||||
|
|
|
@ -43,7 +43,8 @@ namespace Ryujinx.Core.OsHle.Services.Nv
|
|||
{ 2, Close },
|
||||
{ 3, Initialize },
|
||||
{ 4, QueryEvent },
|
||||
{ 8, SetClientPid }
|
||||
{ 8, SetClientPid },
|
||||
{ 13, FinishInitialize }
|
||||
};
|
||||
|
||||
Event = new KEvent();
|
||||
|
@ -139,6 +140,13 @@ namespace Ryujinx.Core.OsHle.Services.Nv
|
|||
return 0;
|
||||
}
|
||||
|
||||
public long FinishInitialize(ServiceCtx Context)
|
||||
{
|
||||
Context.Ns.Log.PrintStub(LogClass.ServiceNv, "Stubbed.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private static int ProcessIoctlNvGpuAS(ServiceCtx Context, int Cmd)
|
||||
{
|
||||
return ProcessIoctl(Context, Cmd, NvGpuASIoctl.ProcessIoctl);
|
||||
|
|
|
@ -97,9 +97,18 @@ namespace Ryujinx.Core.OsHle.Services
|
|||
case "nvdrv:a":
|
||||
return new INvDrvServices();
|
||||
|
||||
case "pctl:s":
|
||||
return new IParentalControlServiceFactory();
|
||||
|
||||
case "pctl:r":
|
||||
return new IParentalControlServiceFactory();
|
||||
|
||||
case "pctl:a":
|
||||
return new IParentalControlServiceFactory();
|
||||
|
||||
case "pctl":
|
||||
return new IParentalControlServiceFactory();
|
||||
|
||||
case "pl:u":
|
||||
return new ISharedFontManager();
|
||||
|
||||
|
|
Loading…
Reference in a new issue