Add IManagerDisplayService::CreateStrayLayer

This was added in 7.0.0
This commit is contained in:
Thog 2019-04-25 15:20:58 +02:00
parent 26be1cb4e2
commit 6d67bd5602
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
2 changed files with 7 additions and 6 deletions

View file

@ -61,7 +61,7 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public long GetManagerDisplayService(ServiceCtx context)
{
MakeObject(context, new IManagerDisplayService());
MakeObject(context, new IManagerDisplayService(this));
return 0;
}

View file

@ -10,14 +10,15 @@ namespace Ryujinx.HLE.HOS.Services.Vi
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
public IManagerDisplayService()
public IManagerDisplayService(IApplicationDisplayService applicationDisplayService)
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
{ 2010, CreateManagedLayer },
{ 2011, DestroyManagedLayer },
{ 6000, AddToLayerStack },
{ 6002, SetLayerVisibility }
{ 2010, CreateManagedLayer },
{ 2011, DestroyManagedLayer },
{ 2012, applicationDisplayService.CreateStrayLayer },
{ 6000, AddToLayerStack },
{ 6002, SetLayerVisibility }
};
}