Add ISystemDisplayService::GetDisplayMode & IManagerDisplayService::SetLayerVisibility

Also add some missing PrintStub calls
This commit is contained in:
Thog 2018-05-04 20:39:32 +02:00
parent d0afc8e380
commit 2252c5ca92
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
2 changed files with 26 additions and 3 deletions

View file

@ -1,5 +1,6 @@
using Ryujinx.Core.OsHle.Ipc;
using System.Collections.Generic;
using Ryujinx.Core.Logging;
namespace Ryujinx.Core.OsHle.Services.Vi
{
@ -15,24 +16,33 @@ namespace Ryujinx.Core.OsHle.Services.Vi
{
{ 2010, CreateManagedLayer },
{ 2011, DestroyManagedLayer },
{ 6000, AddToLayerStack }
{ 6000, AddToLayerStack },
{ 6002, SetLayerVisibility }
};
}
public static long CreateManagedLayer(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
Context.ResponseData.Write(0L); //LayerId
return 0;
}
public long DestroyManagedLayer(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
return 0;
}
public static long AddToLayerStack(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
return 0;
}
public static long SetLayerVisibility(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
return 0;
}
}

View file

@ -1,5 +1,6 @@
using Ryujinx.Core.OsHle.Ipc;
using System.Collections.Generic;
using Ryujinx.Core.Logging;
namespace Ryujinx.Core.OsHle.Services.Vi
{
@ -14,17 +15,29 @@ namespace Ryujinx.Core.OsHle.Services.Vi
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
{ 2205, SetLayerZ },
{ 2207, SetLayerVisibility }
{ 2207, SetLayerVisibility },
{ 3200, GetDisplayMode }
};
}
public static long SetLayerZ(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
return 0;
}
public static long SetLayerVisibility(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceVi, "Stubbed.");
return 0;
}
public static long GetDisplayMode(ServiceCtx Context)
{
Context.ResponseData.Write(1280);
Context.ResponseData.Write(720);
Context.ResponseData.Write(16.0 / 9.0);
Context.ResponseData.Write(0L);
return 0;
}
}