Implement ISystemDisplayService::GetDisplayMode & Add IManagerDisplayService::SetLayerVisibility stub (#118)

* Add ISystemDisplayService::GetDisplayMode & IManagerDisplayService::SetLayerVisibility

Also add some missing PrintStub calls

* Fix import ordering & Fix incorrect value for the third word in GetDisplayMode
This commit is contained in:
Thomas Guillemard 2018-05-11 04:40:52 +02:00 committed by gdkchan
parent ac91607ac3
commit 0979426e63
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;
}
}