Add INvDrvServices command 6 and 9.

This commit is contained in:
WilliamWsyHK 2018-12-09 13:07:10 +08:00
parent 71f94578b5
commit e9b02e5a55

View file

@ -40,14 +40,16 @@ namespace Ryujinx.HLE.HOS.Services.Nv
{
_commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 0, Open },
{ 1, Ioctl },
{ 2, Close },
{ 3, Initialize },
{ 4, QueryEvent },
{ 8, SetClientPid },
{ 11, Ioctl },
{ 13, FinishInitialize }
{ 0, Open },
{ 1, Ioctl },
{ 2, Close },
{ 3, Initialize },
{ 4, QueryEvent },
{ 6, GetStatus },
{ 8, SetClientPid },
{ 9, DumpGraphicsMemoryInfo },
{ 11, Ioctl },
{ 13, FinishInitialize }
};
_event = new KEvent(system);
@ -137,6 +139,13 @@ namespace Ryujinx.HLE.HOS.Services.Nv
return 0;
}
public long GetStatus(ServiceCtx context)
{
context.ResponseData.Write(0x10);
return 0;
}
public long SetClientPid(ServiceCtx context)
{
long pid = context.RequestData.ReadInt64();
@ -146,6 +155,11 @@ namespace Ryujinx.HLE.HOS.Services.Nv
return 0;
}
public long DumpGraphicsMemoryInfo(ServiceCtx context)
{
return 0;
}
public long FinishInitialize(ServiceCtx context)
{
Logger.PrintStub(LogClass.ServiceNv, "Stubbed.");